[PATCH] D33912: [asan] Use asan exitcode=0 option to always succeed a test run.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 13:37:27 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL304731: [asan] Use asan exitcode=0 option to always succeed a test run. (authored by alekseyshl).

Changed prior to commit:
  https://reviews.llvm.org/D33912?vs=101451&id=101453#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33912

Files:
  compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc


Index: compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/halt_on_error-torture.cc
+++ compiler-rt/trunk/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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33912.101453.patch
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170605/87cb96f0/attachment.bin>


More information about the llvm-commits mailing list