diff options
author | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2016-07-15 07:57:43 +0000 |
---|---|---|
committer | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2016-07-15 07:57:43 +0000 |
commit | d52bb2cc8e933229f7df53484bd76d2b06274e63 (patch) | |
tree | 0814ee8b01c4dda059df92099a66ad8dd54e7e5d | |
parent | 48ccea3ee6b4f48ab17a4753694c1d1f39ce5525 (diff) | |
download | compiler-rt-d52bb2cc8e933229f7df53484bd76d2b06274e63.tar.gz |
[asan] Reduce flakiness of halt_on_error-torture.cc testcase.
It seems in some situations we have clashes on very first error so test only prints "nested bug in the same thread, aborting" rather than "use-after-poison", so remove corresponding " RUN: FileCheck %s < 10.txt" line.
Also, the two last " RUN: FileCheck --check-prefix=CHECK-COLLISION %s < 1.txt || FileCheck --check-prefix=CHECK-NO-COLLISION %s < 1.txt" look wrong, they should check 10.txt. Fix these lines too.
Differential Revision: https://reviews.llvm.org/D22309
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@275539 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/asan/TestCases/Posix/halt_on_error-torture.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/asan/TestCases/Posix/halt_on_error-torture.cc b/test/asan/TestCases/Posix/halt_on_error-torture.cc index 019f7d126..d3af1d027 100644 --- a/test/asan/TestCases/Posix/halt_on_error-torture.cc +++ b/test/asan/TestCases/Posix/halt_on_error-torture.cc @@ -9,15 +9,11 @@ // // Collisions are unlikely but still possible so we need the ||. // RUN: %env_asan_opts=halt_on_error=false:suppress_equal_pcs=false %run %t 10 20 >10.txt 2>&1 || true -// This one is racy although _very_ unlikely to fail: -// RUN: FileCheck %s < 10.txt -// RUN: FileCheck --check-prefix=CHECK-COLLISION %s < 1.txt || FileCheck --check-prefix=CHECK-NO-COLLISION %s < 1.txt +// RUN: FileCheck --check-prefix=CHECK-COLLISION %s < 10.txt || FileCheck --check-prefix=CHECK-NO-COLLISION %s < 10.txt // // Collisions are unlikely but still possible so we need the ||. // RUN: %env_asan_opts=halt_on_error=false %run %t 10 20 >10.txt 2>&1 || true -// This one is racy although _very_ unlikely to fail: -// RUN: FileCheck %s < 10.txt -// RUN: FileCheck --check-prefix=CHECK-COLLISION %s < 1.txt || FileCheck --check-prefix=CHECK-NO-COLLISION %s < 1.txt +// RUN: FileCheck --check-prefix=CHECK-COLLISION %s < 10.txt || FileCheck --check-prefix=CHECK-NO-COLLISION %s < 10.txt #include <stdio.h> #include <stdlib.h> |