From: Ilia K Date: Fri, 24 Apr 2015 11:41:42 +0000 (+0000) Subject: Use self.fail() in MiGdbSetShowTestCase.test_lldbmi_gdb_set_target_async_off (MI) X-Git-Tag: llvmorg-3.7.0-rc1~6071 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1107b015c279064117d707b7a7817e93de6d0969;p=platform%2Fupstream%2Fllvm.git Use self.fail() in MiGdbSetShowTestCase.test_lldbmi_gdb_set_target_async_off (MI) llvm-svn: 235712 --- diff --git a/lldb/test/tools/lldb-mi/TestMiGdbSetShow.py b/lldb/test/tools/lldb-mi/TestMiGdbSetShow.py index c683300..b7d1422 100644 --- a/lldb/test/tools/lldb-mi/TestMiGdbSetShow.py +++ b/lldb/test/tools/lldb-mi/TestMiGdbSetShow.py @@ -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")