[Tsan] Fix the atomic_race.cc test to pass on systems with high loads

Differential Revision: http://reviews.llvm.org/D6478

llvm-svn: 223122
This commit is contained in:
Viktor Kutuzov 2014-12-02 15:04:39 +00:00
parent fbd6ec09df
commit 870e790924
1 changed files with 1 additions and 1 deletions

View File

@ -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);