[Lldb-commits] [lldb] 0165b73 - [lldb] Relax expectation on TestMainThreadExit

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 21 03:26:54 PDT 2023


Author: Pavel Labath
Date: 2023-03-21T11:26:32+01:00
New Revision: 0165b73be37c2330ae196799cb3d93445532072b

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

LOG: [lldb] Relax expectation on TestMainThreadExit

The exit code of the (funky) test inferior depends on the linux kernel
version (changed some time between 5.15 and 6.1).

Added: 
    

Modified: 
    lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py b/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py
index 50060dd242f8c..7a8dd80faf944 100644
--- a/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py
+++ b/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py
@@ -26,4 +26,5 @@ def test(self):
         self.expect_expr("call_me()", result_value="12345")
 
         self.runCmd("continue")
-        self.assertEquals(self.process().GetExitStatus(), 47)
+        # Exit code depends on the version of the linux kernel
+        self.assertIn(self.process().GetExitStatus(), [42, 47])


        


More information about the lldb-commits mailing list