[lldb] Skip a bunch of tests that shouldn't run remotely
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 8 Apr 2022 17:36:16 +0000 (10:36 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 8 Apr 2022 17:46:34 +0000 (10:46 -0700)
Skip a bunch of tests that don't really make sense to run remotely.

lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py
lldb/test/API/commands/platform/basic/TestPlatformCommand.py
lldb/test/API/commands/platform/basic/TestPlatformPython.py
lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py
lldb/test/API/python_api/process/TestProcessAPI.py
lldb/test/API/python_api/sbmodule/TestSBModule.py
lldb/test/API/python_api/target/TestTargetAPI.py

index a74e0e7..9e11ec6 100644 (file)
@@ -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.
index 1c981e4..bc4825a 100644 (file)
@@ -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()
index 1a6f6f3..46f0d0c 100644 (file)
@@ -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()
index 8bf950a..91ad5a4 100644 (file)
@@ -43,6 +43,7 @@ class PlatformSDKTestCase(TestBase):
     @skipUnlessDarwin
     @expectedFailureIfFn(no_debugserver)
     @expectedFailureIfFn(port_not_available)
+    @skipIfRemote
     def test_macos_sdk(self):
         self.build()
 
index c89fbcc..86a4d80 100644 (file)
@@ -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()
index bfa1a22..6d1b3e4 100644 (file)
@@ -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()
index 6200ba6..01bb2ba 100644 (file)
@@ -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()
index c02a0a2..c5ca42a 100644 (file)
@@ -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()