diff options
| author | Marshall Clow <mclow@qualcomm.com> | 2013-03-26 15:28:33 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow@qualcomm.com> | 2013-03-26 15:28:33 +0000 |
| commit | a6d24cc19de69872394dab701f27a9f8eddbc4e4 (patch) | |
| tree | 7cf04e8755c9aa43ef8a002925692e5afeecb190 /libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp | |
| parent | 414ef565bb4ae453a535bcb9f06ba83f88938570 (diff) | |
| download | bcm5719-llvm-a6d24cc19de69872394dab701f27a9f8eddbc4e4.tar.gz bcm5719-llvm-a6d24cc19de69872394dab701f27a9f8eddbc4e4.zip | |
Fixed race conditions in thread tests; exposed by UBSan
llvm-svn: 178029
Diffstat (limited to 'libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp')
| -rw-r--r-- | libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp index 246488e5a53..7373886f617 100644 --- a/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp +++ b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp @@ -32,7 +32,7 @@ public: void operator()() { assert(alive_ == 1); - assert(n_alive == 1); + assert(n_alive >= 1); op_run = true; } |

