diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-21 09:15:44 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-21 09:15:44 +0000 |
commit | 4fc1eb55d1973868cc4c1420950ec89e1741bc73 (patch) | |
tree | dd59edb944739767216e776ac4ceda365a6e5091 /lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py | |
parent | 71d38b3c6217d6b3f0d1a50e7a59d4d78b3ecd59 (diff) | |
download | bcm5719-llvm-4fc1eb55d1973868cc4c1420950ec89e1741bc73.tar.gz bcm5719-llvm-4fc1eb55d1973868cc4c1420950ec89e1741bc73.zip |
[lldb][NFC] Add tests for invalid command invocations
llvm-svn: 369506
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/plugins/commands/TestPluginCommands.py | 12 |
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") |