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/mutex_destroy_locked.cc | |
| 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/mutex_destroy_locked.cc')
| -rw-r--r-- | compiler-rt/test/tsan/mutex_destroy_locked.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/mutex_destroy_locked.cc b/compiler-rt/test/tsan/mutex_destroy_locked.cc index 6c5dcbf11c3..b81905ec68f 100644 --- a/compiler-rt/test/tsan/mutex_destroy_locked.cc +++ b/compiler-rt/test/tsan/mutex_destroy_locked.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s #include <pthread.h> #include <unistd.h> |

