From 66b829ac7b6864f4546771668739d80fa34a7e17 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 8 Apr 2022 10:36:16 -0700 Subject: [PATCH] [lldb] Skip a bunch of tests that shouldn't run remotely Skip a bunch of tests that don't really make sense to run remotely. --- .../missing-module-sources/TestStdModuleSourcesMissing.py | 1 + lldb/test/API/commands/platform/basic/TestPlatformCommand.py | 1 + lldb/test/API/commands/platform/basic/TestPlatformPython.py | 1 + lldb/test/API/commands/platform/sdk/TestPlatformSDK.py | 1 + lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py | 1 + lldb/test/API/python_api/process/TestProcessAPI.py | 1 + lldb/test/API/python_api/sbmodule/TestSBModule.py | 1 + lldb/test/API/python_api/target/TestTargetAPI.py | 1 + 8 files changed, 8 insertions(+) diff --git a/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py b/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py index a74e0e7..9e11ec6 100644 --- a/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py +++ b/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py @@ -18,6 +18,7 @@ class TestCase(TestBase): # test configurations where libc++ is actually supposed to be tested. @add_test_categories(["libc++"]) @skipIf(compiler=no_match("clang")) + @skipIfRemote def test(self): # The path to our temporary target root that contains the temporary # module sources. diff --git a/lldb/test/API/commands/platform/basic/TestPlatformCommand.py b/lldb/test/API/commands/platform/basic/TestPlatformCommand.py index 1c981e4..bc4825a 100644 --- a/lldb/test/API/commands/platform/basic/TestPlatformCommand.py +++ b/lldb/test/API/commands/platform/basic/TestPlatformCommand.py @@ -97,6 +97,7 @@ class PlatformCommandTestCase(TestBase): "error: timed out waiting for shell command to complete"]) @no_debug_info_test + @skipIfRemote def test_host_shell_interpreter(self): """ Test the host platform shell with a different interpreter """ self.build() diff --git a/lldb/test/API/commands/platform/basic/TestPlatformPython.py b/lldb/test/API/commands/platform/basic/TestPlatformPython.py index 1a6f6f3..46f0d0c 100644 --- a/lldb/test/API/commands/platform/basic/TestPlatformPython.py +++ b/lldb/test/API/commands/platform/basic/TestPlatformPython.py @@ -82,6 +82,7 @@ class PlatformPythonTestCase(TestBase): @add_test_categories(['pyapi']) @no_debug_info_test + @skipIfRemote def test_shell_interpreter(self): """ Test a shell with a custom interpreter """ platform = self.dbg.GetSelectedPlatform() diff --git a/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py b/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py index 8bf950a..91ad5a4 100644 --- a/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py +++ b/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py @@ -43,6 +43,7 @@ class PlatformSDKTestCase(TestBase): @skipUnlessDarwin @expectedFailureIfFn(no_debugserver) @expectedFailureIfFn(port_not_available) + @skipIfRemote def test_macos_sdk(self): self.build() diff --git a/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py b/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py index c89fbcc..86a4d80 100644 --- a/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py +++ b/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py @@ -23,6 +23,7 @@ class TestDetachVrsProfile(TestBase): @skipUnlessDarwin @skipIfOutOfTreeDebugserver + @skipIfRemote def test_profile_and_detach(self): """There can be many tests in a test case - describe this test here.""" self.build() diff --git a/lldb/test/API/python_api/process/TestProcessAPI.py b/lldb/test/API/python_api/process/TestProcessAPI.py index bfa1a22..6d1b3e4 100644 --- a/lldb/test/API/python_api/process/TestProcessAPI.py +++ b/lldb/test/API/python_api/process/TestProcessAPI.py @@ -320,6 +320,7 @@ class ProcessAPITestCase(TestBase): print("Number of supported hardware watchpoints: %d" % num) @no_debug_info_test + @skipIfRemote def test_get_process_info(self): """Test SBProcess::GetProcessInfo() API with a locally launched process.""" self.build() diff --git a/lldb/test/API/python_api/sbmodule/TestSBModule.py b/lldb/test/API/python_api/sbmodule/TestSBModule.py index 6200ba6..01bb2ba6 100644 --- a/lldb/test/API/python_api/sbmodule/TestSBModule.py +++ b/lldb/test/API/python_api/sbmodule/TestSBModule.py @@ -21,6 +21,7 @@ class SBModuleAPICase(TestBase): os.kill(self.background_pid, signal.SIGKILL) @skipUnlessDarwin + @skipIfRemote def test_module_is_file_backed(self): """Test the SBModule::IsFileBacked() method""" self.build() diff --git a/lldb/test/API/python_api/target/TestTargetAPI.py b/lldb/test/API/python_api/target/TestTargetAPI.py index c02a0a2..c5ca42a 100644 --- a/lldb/test/API/python_api/target/TestTargetAPI.py +++ b/lldb/test/API/python_api/target/TestTargetAPI.py @@ -483,6 +483,7 @@ class TargetAPITestCase(TestBase): self.assertTrue(desc1 and desc2 and desc1 == desc2, "The two addresses should resolve to the same symbol") + @skipIfRemote def test_default_arch(self): """ Test the other two target create methods using LLDB_ARCH_DEFAULT. """ self.build() -- 2.7.4