From 64bff329e459bd3b1886447b25c5787f6eff93db Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 30 May 2014 14:08:51 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209898 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tsan/suppress_same_stacks.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/tsan/suppress_same_stacks.cc') diff --git a/test/tsan/suppress_same_stacks.cc b/test/tsan/suppress_same_stacks.cc index 23008b4bb..9305650ea 100644 --- a/test/tsan/suppress_same_stacks.cc +++ b/test/tsan/suppress_same_stacks.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 volatile int N; // Prevent loop unrolling. -- cgit v1.2.3