Skip to content

Commit 26808ef

Browse files
authored
[rtsan] Disable pthread_cond_wait test (llvm#150807)
Related to llvm#150776 and llvm#146120 Disable to fix test runner: https://lab.llvm.org/buildbot/#/builders/208/builds/3123
1 parent f8685a8 commit 26808ef

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

compiler-rt/test/rtsan/pthread_cond_wait.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
int main() {
1717
std::cout << "Entry to main!" << std::endl;
18+
19+
20+
// TODO: This is disabled because it does cause a test failure
21+
/*
1822
std::mutex mut;
1923
std::condition_variable cv;
2024
bool go{false};
@@ -33,11 +37,9 @@ int main() {
3337
// cv.wait(lock, [&] { return go; });
3438
// but timed wait could segfault
3539
36-
// NOTE: If this test segfaults on a test runner, please comment
37-
// out this line and submit the patch.
38-
// I will follow up with a fix of the underlying problem,
39-
// but first I need to understand if it fails a test runner
40-
cv.wait_for(lock, std::chrono::milliseconds(200), [&] { return go; });
40+
// NOTE: When a fix for the pthread_cond issue #146120 is fixed, uncomment this line
41+
//cv.wait_for(lock, std::chrono::milliseconds(200), [&] { return go; });
42+
*/
4143

4244
std::cout << "Exit from main!" << std::endl;
4345
}

0 commit comments

Comments
 (0)