diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2014-05-30 14:08:51 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2014-05-30 14:08:51 +0000 |
| commit | 233f401c2bf247d9764c3ca641513dafb623e00c (patch) | |
| tree | 7e93f47d2cf396344a1bb40f4f1dc1bda592e433 /compiler-rt/test/tsan/tiny_race.c | |
| parent | afdcc96d9f0a3325a70d8433cd103efdb56340a9 (diff) | |
| download | bcm5719-llvm-233f401c2bf247d9764c3ca641513dafb623e00c.tar.gz bcm5719-llvm-233f401c2bf247d9764c3ca641513dafb623e00c.zip | |
tsan: make positive tests more robust
Add a script that is used to deflake inherently flaky tsan tests.
It is invoked from lit tests as:
%deflake %run %t
The script runs the target program up to 10 times,
until it produces a tsan warning.
llvm-svn: 209898
Diffstat (limited to 'compiler-rt/test/tsan/tiny_race.c')
| -rw-r--r-- | compiler-rt/test/tsan/tiny_race.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/tiny_race.c b/compiler-rt/test/tsan/tiny_race.c index 9d842248090..c10eab15c5a 100644 --- a/compiler-rt/test/tsan/tiny_race.c +++ b/compiler-rt/test/tsan/tiny_race.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s #include <pthread.h> #include <unistd.h> |

