From: Ilia K Date: Fri, 13 Feb 2015 19:13:42 +0000 (+0000) Subject: Add test that checks (gdb) prompt in case of unknown command (MI) X-Git-Tag: llvmorg-3.7.0-rc1~12171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=069dafa4dfbb82a4a0fafd44da0cb044dcdc3ccd;p=platform%2Fupstream%2Fllvm.git Add test that checks (gdb) prompt in case of unknown command (MI) llvm-svn: 229139 --- diff --git a/lldb/test/tools/lldb-mi/TestMiNotification.py b/lldb/test/tools/lldb-mi/TestMiNotification.py index 4a5ef37..1e754b6 100644 --- a/lldb/test/tools/lldb-mi/TestMiNotification.py +++ b/lldb/test/tools/lldb-mi/TestMiNotification.py @@ -18,6 +18,11 @@ class MiNotificationTestCase(lldbmi_testcase.MiTestCaseBase): # Test that lldb-mi is ready after startup self.expect(self.child_prompt, exactly = True) + # Test that lldb-mi is ready after unknown command + self.runCmd("-unknown-command") + self.expect("\^error,msg=\"Driver\. Received command '-unknown-command'\. It was not handled\. Command 'unknown-command' not in Command Factory\"") + self.expect(self.child_prompt, exactly = True) + # Test that lldb-mi is ready after -file-exec-and-symbols self.runCmd("-file-exec-and-symbols %s" % self.myexe) self.expect("\^done")