From: Viktor Kutuzov Date: Tue, 2 Dec 2014 15:04:39 +0000 (+0000) Subject: [Tsan] Fix the atomic_race.cc test to pass on systems with high loads X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=870e7909243e0e7c02d40ce363aaf6bd53c28d21;p=platform%2Fupstream%2Fllvm.git [Tsan] Fix the atomic_race.cc test to pass on systems with high loads Differential Revision: http://reviews.llvm.org/D6478 llvm-svn: 223122 --- diff --git a/compiler-rt/test/tsan/atomic_race.cc b/compiler-rt/test/tsan/atomic_race.cc index ca444b4..9cee8ed 100644 --- a/compiler-rt/test/tsan/atomic_race.cc +++ b/compiler-rt/test/tsan/atomic_race.cc @@ -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);