aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-06-05 20:36:57 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-06-05 20:36:57 +0000
commitabe8af9facbaf7216f58507b411ed316eb64b343 (patch)
treebcdcd8d8e9bc7f2f862c73ae75fb51d3a150392a
parentc8342f2eef81b959bc81429f9459c816fde5bd32 (diff)
downloadllvm-abe8af9facbaf7216f58507b411ed316eb64b343.zip
llvm-abe8af9facbaf7216f58507b411ed316eb64b343.tar.gz
llvm-abe8af9facbaf7216f58507b411ed316eb64b343.tar.bz2
[asan] Use asan exitcode=0 option to always succeed a test run.
Summary: halt_on_error-torture.cc intermittently fails on ppc64be, let's try to collect more info on failures. Reviewers: eugenis Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D33912 llvm-svn: 304731
-rw-r--r--compiler-rt/test/asan/TestCases/Posix/halt_on_error-torture.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/halt_on_error-torture.cc b/compiler-rt/test/asan/TestCases/Posix/halt_on_error-torture.cc
index 1b26173..ec66e02 100644
--- a/compiler-rt/test/asan/TestCases/Posix/halt_on_error-torture.cc
+++ b/compiler-rt/test/asan/TestCases/Posix/halt_on_error-torture.cc
@@ -10,12 +10,12 @@
//
// Collisions are unlikely but still possible so we need the ||.
// RUN: rm -f 10.txt
-// RUN: %env_asan_opts=halt_on_error=false:suppress_equal_pcs=false %run %t 10 20 >>10.txt 2>&1 || true
+// RUN: %env_asan_opts=halt_on_error=false:suppress_equal_pcs=false:exitcode=0 %run %t 10 20 >>10.txt 2>&1
// 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: rm -f 20.txt
-// RUN: %env_asan_opts=halt_on_error=false %run %t 10 20 >>20.txt 2>&1 || true
+// RUN: %env_asan_opts=halt_on_error=false:exitcode=0 %run %t 10 20 >>20.txt 2>&1
// RUN: FileCheck --check-prefix=CHECK-COLLISION %s < 20.txt || FileCheck --check-prefix=CHECK-NO-COLLISION %s < 20.txt
#include <stdio.h>