summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/plugins')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py12
1 files changed, 12 insertions, 0 deletions
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")
OpenPOWER on IntegriCloud