Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions compiler-rt/test/rtsan/pthread_cond_wait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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;
}
Expand Down
Loading