[Lldb-commits] [lldb] [lldb][test] Fix TestLongjmp (PR #185464)

via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 9 10:19:07 PDT 2026


https://github.com/eleviant created https://github.com/llvm/llvm-project/pull/185464

None

>From 9636a0e12a66e7f8d43fe0e21cb743cce0e06d4e Mon Sep 17 00:00:00 2001
From: Evgeny Leviant <eleviant at accesssoftek.com>
Date: Mon, 9 Mar 2026 18:18:29 +0100
Subject: [PATCH] [lldb][test] Fix TestLongjmp

---
 lldb/test/API/functionalities/longjmp/TestLongjmp.py | 3 ---
 lldb/test/API/functionalities/longjmp/main.c         | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/lldb/test/API/functionalities/longjmp/TestLongjmp.py b/lldb/test/API/functionalities/longjmp/TestLongjmp.py
index b92a17b05b7f2..cd0e4b122249e 100644
--- a/lldb/test/API/functionalities/longjmp/TestLongjmp.py
+++ b/lldb/test/API/functionalities/longjmp/TestLongjmp.py
@@ -11,7 +11,6 @@
 
 class LongjmpTestCase(TestBase):
     @skipIfDarwin  # llvm.org/pr16769: LLDB on Mac OS X dies in function ReadRegisterBytes in GDBRemoteRegisterContext.cpp
-    @expectedFailureAll(oslist=["freebsd", "linux"], bugnumber="llvm.org/pr20231")
     @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778")
     @expectedFlakeyNetBSD
     def test_step_out(self):
@@ -20,7 +19,6 @@ def test_step_out(self):
         self.step_out()
 
     @skipIfDarwin  # llvm.org/pr16769: LLDB on Mac OS X dies in function ReadRegisterBytes in GDBRemoteRegisterContext.cpp
-    @expectedFailureAll(oslist=["freebsd", "linux"], bugnumber="llvm.org/pr20231")
     @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778")
     @skipIfNetBSD
     def test_step_over(self):
@@ -29,7 +27,6 @@ def test_step_over(self):
         self.step_over()
 
     @skipIfDarwin  # llvm.org/pr16769: LLDB on Mac OS X dies in function ReadRegisterBytes in GDBRemoteRegisterContext.cpp
-    @expectedFailureAll(oslist=["freebsd", "linux"], bugnumber="llvm.org/pr20231")
     @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24778")
     @expectedFlakeyNetBSD
     def test_step_back_out(self):
diff --git a/lldb/test/API/functionalities/longjmp/main.c b/lldb/test/API/functionalities/longjmp/main.c
index d241dd022a88e..d6a2d238bd4ce 100644
--- a/lldb/test/API/functionalities/longjmp/main.c
+++ b/lldb/test/API/functionalities/longjmp/main.c
@@ -8,7 +8,7 @@ void do_jump(void)
 {
     // We can't let the compiler know this will always happen or it might make
     // optimizations that break our test.
-    if (!clock())
+    if (clock())
         longjmp(j, 1); // non-local goto
 }
 



More information about the lldb-commits mailing list