aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lldb/packages/Python/lldbsuite/test/decorators.py10
-rw-r--r--lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py1
-rw-r--r--lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py1
-rw-r--r--lldb/test/API/api/multiple-targets/TestMultipleTargets.py2
-rw-r--r--lldb/test/API/api/multithreaded/TestMultithreaded.py6
-rw-r--r--lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py4
6 files changed, 13 insertions, 11 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 86594c2..a5d7a7a 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -746,18 +746,14 @@ def skipUnlessTargetAndroid(func):
)(func)
-def skipIfHostIncompatibleWithRemote(func):
- """Decorate the item to skip tests if binaries built on this host are incompatible."""
+def skipIfHostIncompatibleWithTarget(func):
+ """Decorate the item to skip tests when the host and target are incompatible."""
def is_host_incompatible_with_remote():
host_arch = lldbplatformutil.getLLDBArchitecture()
host_platform = lldbplatformutil.getHostPlatform()
target_arch = lldbplatformutil.getArchitecture()
- target_platform = (
- "darwin"
- if lldbplatformutil.platformIsDarwin()
- else lldbplatformutil.getPlatform()
- )
+ target_platform = lldbplatformutil.getPlatform()
if (
not (target_arch == "x86_64" and host_arch == "i386")
and host_arch != target_arch
diff --git a/lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py b/lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py
index 98f0893..e992f62 100644
--- a/lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py
+++ b/lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py
@@ -12,6 +12,7 @@ class TestSBCommandReturnObject(TestBase):
@expectedFailureAll(
oslist=["windows"], archs=["i[3-6]86", "x86_64"], bugnumber="llvm.org/pr43570"
)
+ @skipIfHostIncompatibleWithTarget
def test_sb_command_return_object(self):
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
diff --git a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
index 15b2012..b818268 100644
--- a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
+++ b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
@@ -13,6 +13,7 @@ class TestMultipleSimultaneousDebuggers(TestBase):
@skipIfNoSBHeaders
@skipIfWindows
+ @skipIfHostIncompatibleWithTarget
def test_multiple_debuggers(self):
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
diff --git a/lldb/test/API/api/multiple-targets/TestMultipleTargets.py b/lldb/test/API/api/multiple-targets/TestMultipleTargets.py
index 4fb9279..a2e0f08 100644
--- a/lldb/test/API/api/multiple-targets/TestMultipleTargets.py
+++ b/lldb/test/API/api/multiple-targets/TestMultipleTargets.py
@@ -13,11 +13,11 @@ class TestMultipleTargets(TestBase):
@skipIf(oslist=["linux"], archs=["arm", "aarch64"])
@skipIfNoSBHeaders
- @skipIfHostIncompatibleWithRemote
@expectedFailureAll(
oslist=["windows"], archs=["i[3-6]86", "x86_64"], bugnumber="llvm.org/pr20282"
)
@expectedFlakeyNetBSD
+ @skipIfHostIncompatibleWithTarget
def test_multiple_targets(self):
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
diff --git a/lldb/test/API/api/multithreaded/TestMultithreaded.py b/lldb/test/API/api/multithreaded/TestMultithreaded.py
index 1eeff12..9f2756f 100644
--- a/lldb/test/API/api/multithreaded/TestMultithreaded.py
+++ b/lldb/test/API/api/multithreaded/TestMultithreaded.py
@@ -27,6 +27,7 @@ class SBBreakpointCallbackCase(TestBase):
@skipIfRemote
# clang-cl does not support throw or catch (llvm.org/pr24538)
@skipIfWindows
+ @skipIfHostIncompatibleWithTarget
def test_python_stop_hook(self):
"""Test that you can run a python command in a stop-hook when stdin is File based."""
self.build_and_test("driver.cpp test_stop-hook.cpp", "test_python_stop_hook")
@@ -34,6 +35,7 @@ class SBBreakpointCallbackCase(TestBase):
@skipIfRemote
# clang-cl does not support throw or catch (llvm.org/pr24538)
@skipIfWindows
+ @skipIfHostIncompatibleWithTarget
def test_breakpoint_callback(self):
"""Test the that SBBreakpoint callback is invoked when a breakpoint is hit."""
self.build_and_test(
@@ -43,6 +45,7 @@ class SBBreakpointCallbackCase(TestBase):
@skipIfRemote
# clang-cl does not support throw or catch (llvm.org/pr24538)
@skipIfWindows
+ @skipIfHostIncompatibleWithTarget
def test_breakpoint_location_callback(self):
"""Test the that SBBreakpointLocation callback is invoked when a breakpoint is hit."""
self.build_and_test(
@@ -54,6 +57,7 @@ class SBBreakpointCallbackCase(TestBase):
# clang-cl does not support throw or catch (llvm.org/pr24538)
@skipIfWindows
@expectedFlakeyFreeBSD
+ @skipIfHostIncompatibleWithTarget
def test_sb_api_listener_event_description(self):
"""Test the description of an SBListener breakpoint event is valid."""
self.build_and_test(
@@ -65,6 +69,7 @@ class SBBreakpointCallbackCase(TestBase):
# clang-cl does not support throw or catch (llvm.org/pr24538)
@skipIfWindows
@expectedFlakeyFreeBSD
+ @skipIfHostIncompatibleWithTarget
def test_sb_api_listener_event_process_state(self):
"""Test that a registered SBListener receives events when a process
changes state.
@@ -79,6 +84,7 @@ class SBBreakpointCallbackCase(TestBase):
@skipIfWindows
@expectedFlakeyFreeBSD
@skipIf(oslist=["linux"]) # flakey
+ @skipIfHostIncompatibleWithTarget
def test_sb_api_listener_resume(self):
"""Test that a process can be resumed from a non-main thread."""
self.build_and_test(
diff --git a/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py b/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
index 46ebbef5..d2df036 100644
--- a/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
+++ b/lldb/test/API/functionalities/plugins/command_plugin/TestPluginCommands.py
@@ -13,9 +13,7 @@ class PluginCommandTestCase(TestBase):
TestBase.setUp(self)
@skipIfNoSBHeaders
- # Requires a compatible arch and platform to link against the host's built
- # lldb lib.
- @skipIfHostIncompatibleWithRemote
+ @skipIfHostIncompatibleWithTarget
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778")
@no_debug_info_test
def test_load_plugin(self):