diff options
| author | Yury Gribov <y.gribov@samsung.com> | 2015-11-13 12:49:58 +0000 |
|---|---|---|
| committer | Yury Gribov <y.gribov@samsung.com> | 2015-11-13 12:49:58 +0000 |
| commit | 7e3c7ee0b19962088af164f63fededb28e30795b (patch) | |
| tree | cf33122e8c2b61fe086d35be253843c11a4e2d40 | |
| parent | 11297349ea155c524165f76f76f7e2e19bbc48af (diff) | |
| download | bcm5719-llvm-7e3c7ee0b19962088af164f63fededb28e30795b.tar.gz bcm5719-llvm-7e3c7ee0b19962088af164f63fededb28e30795b.zip | |
[asan] Fixed invalid check in test.
llvm-svn: 253037
| -rw-r--r-- | compiler-rt/test/asan/TestCases/Linux/halt_on_error-torture.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/halt_on_error-torture.cc b/compiler-rt/test/asan/TestCases/Linux/halt_on_error-torture.cc index d8a21e1ca32..cfdc091a776 100644 --- a/compiler-rt/test/asan/TestCases/Linux/halt_on_error-torture.cc +++ b/compiler-rt/test/asan/TestCases/Linux/halt_on_error-torture.cc @@ -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 ||. |

