| commit | a6d24cc19de69872394dab701f27a9f8eddbc4e4 | [log] [tgz] |
|---|---|---|
| author | Marshall Clow <mclow@qualcomm.com> | Tue Mar 26 15:28:33 2013 +0000 |
| committer | Marshall Clow <mclow@qualcomm.com> | Tue Mar 26 15:28:33 2013 +0000 |
| tree | 7cf04e8755c9aa43ef8a002925692e5afeecb190 | |
| parent | 414ef565bb4ae453a535bcb9f06ba83f88938570 [diff] [blame] |
Fixed race conditions in thread tests; exposed by UBSan llvm-svn: 178029
diff --git a/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.member/join.pass.cpp b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.member/join.pass.cpp index 3b278da..32faef4 100644 --- a/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.member/join.pass.cpp +++ b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.member/join.pass.cpp
@@ -32,7 +32,7 @@ void operator()() { assert(alive_ == 1); - assert(n_alive == 1); + assert(n_alive >= 1); op_run = true; } };