[compiler-rt] 26808ef - [rtsan] Disable pthread_cond_wait test (#150807)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 26 16:27:36 PDT 2025


Author: Chris Apple
Date: 2025-07-26T16:27:32-07:00
New Revision: 26808ef7c2adff7261f65ed56fc5162ca3d900af

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

LOG: [rtsan] Disable pthread_cond_wait test (#150807)

Related to #150776 and #146120

Disable to fix test runner:
https://lab.llvm.org/buildbot/#/builders/208/builds/3123

Added: 
    

Modified: 
    compiler-rt/test/rtsan/pthread_cond_wait.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/rtsan/pthread_cond_wait.cpp b/compiler-rt/test/rtsan/pthread_cond_wait.cpp
index 915ec07228554..29afbf4b060cc 100644
--- a/compiler-rt/test/rtsan/pthread_cond_wait.cpp
+++ b/compiler-rt/test/rtsan/pthread_cond_wait.cpp
@@ -15,6 +15,10 @@
 
 int main() {
   std::cout << "Entry to main!" << std::endl;
+
+
+  // TODO: This is disabled because it does cause a test failure
+  /*
   std::mutex mut;
   std::condition_variable cv;
   bool go{false};
@@ -33,11 +37,9 @@ int main() {
   // cv.wait(lock, [&] { return go; });
   // but timed wait could segfault
 
-  // NOTE: If this test segfaults on a test runner, please comment
-  //       out this line and submit the patch.
-  //       I will follow up with a fix of the underlying problem,
-  //       but first I need to understand if it fails a test runner
-  cv.wait_for(lock, std::chrono::milliseconds(200), [&] { return go; });
+  // NOTE: When a fix for the pthread_cond issue #146120 is fixed, uncomment this line
+  //cv.wait_for(lock, std::chrono::milliseconds(200), [&] { return go; });
+  */
 
   std::cout << "Exit from main!" << std::endl;
 }


        


More information about the llvm-commits mailing list