Use self.fail() in MiGdbSetShowTestCase.test_lldbmi_gdb_set_target_async_off (MI)

llvm-svn: 235712
This commit is contained in:
Ilia K 2015-04-24 11:41:42 +00:00
parent afef49267a
commit 1107b015c2
1 changed files with 1 additions and 2 deletions

View File

@ -82,8 +82,7 @@ class MiGdbSetShowTestCase(lldbmi_testcase.MiTestCaseBase):
unexpected = [ "\*running" ] # "\*running" is async notification
it = self.expect(unexpected + [ "@\"argc=1\\\\r\\\\n" ])
if it < len(unexpected):
# generate error if it's not "@\"argc=1\\\\r\\\\n"
self.expect("$UNEXPECTED FOUND: %s\.^" % unexpected[it], timeout = 0)
self.fail("unexpected found: %s" % unexpected[it])
@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")