[lldb][NFC] Add test for invalid gui command
authorRaphael Isemann <teemperor@gmail.com>
Mon, 2 Sep 2019 12:10:16 +0000 (12:10 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 2 Sep 2019 12:10:16 +0000 (12:10 +0000)
llvm-svn: 370647

lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py [new file with mode: 0644]

diff --git a/lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py b/lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py
new file mode 100644 (file)
index 0000000..92ead9f
--- /dev/null
@@ -0,0 +1,15 @@
+import lldb
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test.decorators import *
+
+class GuiTestCase(TestBase):
+
+    mydir = TestBase.compute_mydir(__file__)
+
+    def setUp(self):
+        TestBase.setUp(self)
+
+    @no_debug_info_test
+    def test_reproducer_generate_invalid_invocation(self):
+        self.expect("gui blub", error=True,
+                    substrs=["the gui command takes no arguments."])