[compiler-rt] r253035 - [asan] Dump test output in case of error in single-threaded mode.

Yury Gribov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 04:07:15 PST 2015


Author: ygribov
Date: Fri Nov 13 06:07:15 2015
New Revision: 253035

URL: http://llvm.org/viewvc/llvm-project?rev=253035&view=rev
Log:
[asan] Dump test output in case of error in single-threaded mode.

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=253035&r1=253034&r2=253035&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:07:15 2015
@@ -2,7 +2,7 @@
 //
 // 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
+// RUN: env ASAN_OPTIONS=halt_on_error=false %run %t 1 10 >1.txt 2>&1 || cat 1.txt
 // RUN: FileCheck %s < 1.txt
 // RUN: [ $(wc -l < 1.txt) -eq 10 ]
 // RUN: FileCheck --check-prefix=CHECK-NO-COLLISION %s < 1.txt




More information about the llvm-commits mailing list