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.assign/move.pass.cpp b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/move.pass.cpp index 7e35652..1a5f3208 100644 --- a/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/move.pass.cpp +++ b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/move.pass.cpp
@@ -32,14 +32,14 @@ void operator()() { assert(alive_ == 1); - assert(n_alive == 1); + assert(n_alive >= 1); op_run = true; } void operator()(int i, double j) { assert(alive_ == 1); - assert(n_alive == 1); + assert(n_alive >= 1); assert(i == 5); assert(j == 5.5); op_run = true;