[compiler-rt] r223122 - [Tsan] Fix the atomic_race.cc test to pass on systems with high loads
Viktor Kutuzov
vkutuzov at accesssoftek.com
Tue Dec 2 07:04:39 PST 2014
Author: vkutuzov
Date: Tue Dec 2 09:04:39 2014
New Revision: 223122
URL: http://llvm.org/viewvc/llvm-project?rev=223122&view=rev
Log:
[Tsan] Fix the atomic_race.cc test to pass on systems with high loads
Differential Revision: http://reviews.llvm.org/D6478
Modified:
compiler-rt/trunk/test/tsan/atomic_race.cc
Modified: compiler-rt/trunk/test/tsan/atomic_race.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/atomic_race.cc?rev=223122&r1=223121&r2=223122&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/atomic_race.cc (original)
+++ compiler-rt/trunk/test/tsan/atomic_race.cc Tue Dec 2 09:04:39 2014
@@ -36,7 +36,7 @@ void *Thread(void *p) {
for (int i = 0; i < kTestCount; i++) {
Test(i, &atomics[i], false);
}
- sleep(2);
+ sleep(4);
for (int i = 0; i < kTestCount; i++) {
fprintf(stderr, "Test %d reverse\n", i);
Test(i, &atomics[kTestCount + i], false);
More information about the llvm-commits
mailing list