[Lldb-commits] [lldb] r229139 - Add test that checks (gdb) prompt in case of unknown command (MI)
Ilia K
ki.stfu at gmail.com
Fri Feb 13 11:13:43 PST 2015
Author: ki.stfu
Date: Fri Feb 13 13:13:42 2015
New Revision: 229139
URL: http://llvm.org/viewvc/llvm-project?rev=229139&view=rev
Log:
Add test that checks (gdb) prompt in case of unknown command (MI)
Modified:
lldb/trunk/test/tools/lldb-mi/TestMiNotification.py
Modified: lldb/trunk/test/tools/lldb-mi/TestMiNotification.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiNotification.py?rev=229139&r1=229138&r2=229139&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/TestMiNotification.py (original)
+++ lldb/trunk/test/tools/lldb-mi/TestMiNotification.py Fri Feb 13 13:13:42 2015
@@ -18,6 +18,11 @@ class MiNotificationTestCase(lldbmi_test
# 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")
More information about the lldb-commits
mailing list