summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorViktor Kutuzov <vkutuzov@accesssoftek.com>2014-12-02 15:04:39 +0000
committerViktor Kutuzov <vkutuzov@accesssoftek.com>2014-12-02 15:04:39 +0000
commita80ff0c4dde117d65c7424b9c104ebe60877e932 (patch)
tree739f171e13396e71a4334f8d15107760f7a5f5d1 /test
parent01eb1642389985c575bd7744f1c42b7ae58154cc (diff)
[Tsan] Fix the atomic_race.cc test to pass on systems with high loads
Differential Revision: http://reviews.llvm.org/D6478 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@223122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/tsan/atomic_race.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/atomic_race.cc b/test/tsan/atomic_race.cc
index ca444b42b..9cee8ed82 100644
--- a/test/tsan/atomic_race.cc
+++ b/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);