[Lldb-commits] [lldb] c686eeb - [lldb] skip ReverseContinue tests on Darwin

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 10 16:08:36 PDT 2024


Author: Jason Molenda
Date: 2024-10-10T16:08:19-07:00
New Revision: c686eeb7fcc89673909e7e1f0a0a09a0da269d28

URL: https://github.com/llvm/llvm-project/commit/c686eeb7fcc89673909e7e1f0a0a09a0da269d28
DIFF: https://github.com/llvm/llvm-project/commit/c686eeb7fcc89673909e7e1f0a0a09a0da269d28.diff

LOG: [lldb] skip ReverseContinue tests on Darwin

This uses lldb-server in gdbserver mode, which requires a ProcessNative
plugin.  Darwin does not have a ProcessNative plugin; it uses
debugserver instead of lldb-server.  Skip these tests.

Added: 
    

Modified: 
    lldb/test/API/functionalities/reverse-execution/TestReverseContinueBreakpoints.py
    lldb/test/API/functionalities/reverse-execution/TestReverseContinueNotSupported.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/reverse-execution/TestReverseContinueBreakpoints.py b/lldb/test/API/functionalities/reverse-execution/TestReverseContinueBreakpoints.py
index b37578fbd82468..8b53d86704f119 100644
--- a/lldb/test/API/functionalities/reverse-execution/TestReverseContinueBreakpoints.py
+++ b/lldb/test/API/functionalities/reverse-execution/TestReverseContinueBreakpoints.py
@@ -11,9 +11,11 @@
 class TestReverseContinueBreakpoints(ReverseTestBase):
     NO_DEBUG_INFO_TESTCASE = True
 
+    @skipIfDarwin # No Darwin ProcessNative impl for lldb-server
     def test_reverse_continue(self):
         self.reverse_continue_internal(async_mode=False)
 
+    @skipIfDarwin # No Darwin ProcessNative impl for lldb-server
     def test_reverse_continue_async(self):
         self.reverse_continue_internal(async_mode=True)
 
@@ -37,9 +39,11 @@ def reverse_continue_internal(self, async_mode):
         self.assertState(process.GetState(), lldb.eStateExited)
         self.assertEqual(process.GetExitStatus(), 0)
 
+    @skipIfDarwin # No Darwin ProcessNative impl for lldb-server
     def test_reverse_continue_breakpoint(self):
         self.reverse_continue_breakpoint_internal(async_mode=False)
 
+    @skipIfDarwin # No Darwin ProcessNative impl for lldb-server
     def test_reverse_continue_breakpoint_async(self):
         self.reverse_continue_breakpoint_internal(async_mode=True)
 
@@ -54,9 +58,11 @@ def reverse_continue_breakpoint_internal(self, async_mode):
         threads_now = lldbutil.get_threads_stopped_at_breakpoint(process, trigger_bkpt)
         self.assertEqual(threads_now, initial_threads)
 
+    @skipIfDarwin # No Darwin ProcessNative impl for lldb-server
     def test_reverse_continue_skip_breakpoint(self):
         self.reverse_continue_skip_breakpoint_internal(async_mode=False)
 
+    @skipIfDarwin # No Darwin ProcessNative impl for lldb-server
     def test_reverse_continue_skip_breakpoint_async(self):
         self.reverse_continue_skip_breakpoint_internal(async_mode=True)
 

diff  --git a/lldb/test/API/functionalities/reverse-execution/TestReverseContinueNotSupported.py b/lldb/test/API/functionalities/reverse-execution/TestReverseContinueNotSupported.py
index d610761b8cb0bc..8a20f0ffdcf660 100644
--- a/lldb/test/API/functionalities/reverse-execution/TestReverseContinueNotSupported.py
+++ b/lldb/test/API/functionalities/reverse-execution/TestReverseContinueNotSupported.py
@@ -8,6 +8,7 @@
 class TestReverseContinueNotSupported(TestBase):
     NO_DEBUG_INFO_TESTCASE = True
 
+    @skipIfDarwin # No Darwin ProcessNative impl for lldb-server
     def test_reverse_continue_not_supported(self):
         self.build()
         exe = self.getBuildArtifact("a.out")


        


More information about the lldb-commits mailing list