[compiler-rt] r197965 - tsan: deflake another test
Dmitry Vyukov
dvyukov at google.com
Mon Dec 23 23:49:33 PST 2013
Author: dvyukov
Date: Tue Dec 24 01:49:33 2013
New Revision: 197965
URL: http://llvm.org/viewvc/llvm-project?rev=197965&view=rev
Log:
tsan: deflake another test
Modified:
compiler-rt/trunk/lib/tsan/lit_tests/suppress_same_address.cc
Modified: compiler-rt/trunk/lib/tsan/lit_tests/suppress_same_address.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/suppress_same_address.cc?rev=197965&r1=197964&r2=197965&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/suppress_same_address.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/suppress_same_address.cc Tue Dec 24 01:49:33 2013
@@ -1,9 +1,11 @@
// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
#include <pthread.h>
+#include <unistd.h>
-int X;
+volatile int X;
void *Thread1(void *x) {
+ sleep(1);
X = 42;
X = 66;
X = 78;
More information about the llvm-commits
mailing list