[compiler-rt] r195916 - tsan: deflake more tests
Dmitry Vyukov
dvyukov at google.com
Thu Nov 28 02:12:16 PST 2013
Author: dvyukov
Date: Thu Nov 28 04:12:16 2013
New Revision: 195916
URL: http://llvm.org/viewvc/llvm-project?rev=195916&view=rev
Log:
tsan: deflake more tests
Modified:
compiler-rt/trunk/lib/tsan/lit_tests/stack_race.cc
compiler-rt/trunk/lib/tsan/lit_tests/stack_race2.cc
Modified: compiler-rt/trunk/lib/tsan/lit_tests/stack_race.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/stack_race.cc?rev=195916&r1=195915&r2=195916&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/stack_race.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/stack_race.cc Thu Nov 28 04:12:16 2013
@@ -1,8 +1,10 @@
// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
#include <pthread.h>
#include <stddef.h>
+#include <unistd.h>
void *Thread(void *a) {
+ sleep(1);
*(int*)a = 43;
return 0;
}
Modified: compiler-rt/trunk/lib/tsan/lit_tests/stack_race2.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/stack_race2.cc?rev=195916&r1=195915&r2=195916&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/stack_race2.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/stack_race2.cc Thu Nov 28 04:12:16 2013
@@ -4,6 +4,7 @@
#include <unistd.h>
void *Thread2(void *a) {
+ sleep(1);
*(int*)a = 43;
return 0;
}
More information about the llvm-commits
mailing list