From 9bc338b89ec02cdb87d54ef9d431544c52b7774a Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Mon, 2 Sep 2019 12:10:16 +0000 Subject: [PATCH] [lldb][NFC] Add test for invalid gui command llvm-svn: 370647 --- .../gui/invalid-args/TestInvalidArgsGui.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py 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 index 000000000000..92ead9f4fa7f --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py @@ -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."])