[compiler-rt] r204340 - tsan: deflake test
Dmitry Vyukov
dvyukov at google.com
Thu Mar 20 06:27:11 PDT 2014
Author: dvyukov
Date: Thu Mar 20 08:27:11 2014
New Revision: 204340
URL: http://llvm.org/viewvc/llvm-project?rev=204340&view=rev
Log:
tsan: deflake test
Modified:
compiler-rt/trunk/test/tsan/simple_race.c
Modified: compiler-rt/trunk/test/tsan/simple_race.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/simple_race.c?rev=204340&r1=204339&r2=204340&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/simple_race.c (original)
+++ compiler-rt/trunk/test/tsan/simple_race.c Thu Mar 20 08:27:11 2014
@@ -1,10 +1,12 @@
// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
#include <pthread.h>
#include <stdio.h>
+#include <unistd.h>
int Global;
void *Thread1(void *x) {
+ sleep(1);
Global = 42;
return NULL;
}
More information about the llvm-commits
mailing list