[compiler-rt] r200833 - tsan: deflake flaky test
Dmitry Vyukov
dvyukov at google.com
Wed Feb 5 04:01:34 PST 2014
Author: dvyukov
Date: Wed Feb 5 06:01:34 2014
New Revision: 200833
URL: http://llvm.org/viewvc/llvm-project?rev=200833&view=rev
Log:
tsan: deflake flaky test
Modified:
compiler-rt/trunk/lib/tsan/lit_tests/global_race.cc
Modified: compiler-rt/trunk/lib/tsan/lit_tests/global_race.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/global_race.cc?rev=200833&r1=200832&r2=200833&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/global_race.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/global_race.cc Wed Feb 5 06:01:34 2014
@@ -2,6 +2,7 @@
#include <pthread.h>
#include <stdio.h>
#include <stddef.h>
+#include <unistd.h>
int GlobalData[10];
int x;
@@ -13,6 +14,7 @@ namespace XXX {
}
void *Thread(void *a) {
+ sleep(1);
GlobalData[2] = 42;
x = 1;
XXX::YYY::ZZZ[0] = 1;
More information about the llvm-commits
mailing list