From 4fc1eb55d1973868cc4c1420950ec89e1741bc73 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Wed, 21 Aug 2019 09:15:44 +0000 Subject: [lldb][NFC] Add tests for invalid command invocations llvm-svn: 369506 --- .../functionalities/plugins/commands/TestPluginCommands.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py b/lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py index 39c1f7be559..e81d4076574 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py @@ -64,3 +64,15 @@ class PluginCommandTestCase(TestBase): print(retobj.GetOutput()) self.expect(retobj, substrs=['abc def ghi'], exe=False) + + @no_debug_info_test + def test_invalid_plugin_invocation(self): + self.expect("plugin load a b", + error=True, startstr="error: 'plugin load' requires one argument") + self.expect("plugin load", + error=True, startstr="error: 'plugin load' requires one argument") + + @no_debug_info_test + def test_invalid_plugin_target(self): + self.expect("plugin load ThisIsNotAValidPluginName", + error=True, startstr="error: no such file") -- cgit v1.2.3