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/load_shared_lib.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/load_shared_lib.cc')
-rw-r--r-- | compiler-rt/test/tsan/load_shared_lib.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/load_shared_lib.cc b/compiler-rt/test/tsan/load_shared_lib.cc index 2b250e3e6f3..2747b295114 100644 --- a/compiler-rt/test/tsan/load_shared_lib.cc +++ b/compiler-rt/test/tsan/load_shared_lib.cc @@ -4,7 +4,7 @@ // RUN: %clangxx_tsan -O1 %p/SharedLibs/load_shared_lib-so.cc \ // RUN: -fPIC -shared -o %t-so.so -// 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 <dlfcn.h> #include <pthread.h> |