From a6d24cc19de69872394dab701f27a9f8eddbc4e4 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 26 Mar 2013 15:28:33 +0000 Subject: Fixed race conditions in thread tests; exposed by UBSan llvm-svn: 178029 --- .../thread.thread.class/thread.thread.assign/copy.fail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.assign/copy.fail.cpp') 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; } -- cgit v1.2.3