[compiler-rt] r253037 - [asan] Fixed invalid check in test.
Yury Gribov via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 04:49:59 PST 2015
Author: ygribov
Date: Fri Nov 13 06:49:58 2015
New Revision: 253037
URL: http://llvm.org/viewvc/llvm-project?rev=253037&view=rev
Log:
[asan] Fixed invalid check in test.
Modified:
compiler-rt/trunk/test/asan/TestCases/Linux/halt_on_error-torture.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Linux/halt_on_error-torture.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/halt_on_error-torture.cc?rev=253037&r1=253036&r2=253037&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/halt_on_error-torture.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/halt_on_error-torture.cc Fri Nov 13 06:49:58 2015
@@ -2,9 +2,9 @@
//
// RUN: %clangxx_asan -fsanitize-recover=address -pthread %s -o %t
//
-// RUN: env ASAN_OPTIONS=halt_on_error=false %run %t 1 10 >1.txt 2>&1 || cat 1.txt
+// RUN: env ASAN_OPTIONS=halt_on_error=false %run %t 1 10 >1.txt 2>&1
// RUN: FileCheck %s < 1.txt
-// RUN: [ $(wc -l < 1.txt) -eq 10 ]
+// RUN: [ $(grep -c 'ERROR: AddressSanitizer: use-after-poison' 1.txt) -eq 10 ]
// RUN: FileCheck --check-prefix=CHECK-NO-COLLISION %s < 1.txt
//
// Collisions are unlikely but still possible so we need the ||.
More information about the llvm-commits
mailing list