Add test that checks (gdb) prompt in case of unknown command (MI)

llvm-svn: 229139
This commit is contained in:
Ilia K 2015-02-13 19:13:42 +00:00
parent 46963f6e73
commit 069dafa4df
1 changed files with 5 additions and 0 deletions

View File

@ -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")