From 1107b015c279064117d707b7a7817e93de6d0969 Mon Sep 17 00:00:00 2001 From: Ilia K Date: Fri, 24 Apr 2015 11:41:42 +0000 Subject: [PATCH] Use self.fail() in MiGdbSetShowTestCase.test_lldbmi_gdb_set_target_async_off (MI) llvm-svn: 235712 --- lldb/test/tools/lldb-mi/TestMiGdbSetShow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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") -- 2.7.4