summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2022-11-17 08:17:10 -0800
committerJordan Rupprecht <rupprecht@google.com>2022-11-17 08:17:10 -0800
commit8be41c787f9e12a4eb101e2dcad67ddc2da7ec1f (patch)
treeac3e07edcb6a5c2c25bf49c71bfed0e17c78a2cd /lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
parent6cff86ff7e5cd3dad7e7a77b4169df9a7b4c57b3 (diff)
[test] Allow skipTestIfFn to apply to entire classes for skipIfNoSBHeaders
Some test cases are already marked @skipIfNoSBHeaders, but they make use of SBAPI headers in test setup. The setup will fail if the headers are missing, so it is too late to wait until the test case to apply the skip annotation. In addition to allowing this to apply to entire classes, I also changed all the existing annotations from test cases to test classes where necessary/appropriate. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D138181
Diffstat (limited to 'lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py')
-rw-r--r--lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py b/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
index 3ac2cdd6419a..cde75dd1131e 100644
--- a/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
+++ b/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
@@ -12,7 +12,6 @@ class PluginCommandTestCase(TestBase):
def setUp(self):
TestBase.setUp(self)
- self.generateSource('plugin.cpp')
@skipIfNoSBHeaders
# Requires a compatible arch and platform to link against the host's built
@@ -22,6 +21,7 @@ class PluginCommandTestCase(TestBase):
@no_debug_info_test
def test_load_plugin(self):
"""Test that plugins that load commands work correctly."""
+ self.generateSource('plugin.cpp')
plugin_name = "plugin"
if sys.platform.startswith("darwin"):