[compiler-rt] r271323 - Fix test for Darwin: ASAN is calling abort by default on Darwin, which not detects as a crash

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 13:09:57 PDT 2016


Author: mehdi_amini
Date: Tue May 31 15:09:56 2016
New Revision: 271323

URL: http://llvm.org/viewvc/llvm-project?rev=271323&view=rev
Log:
Fix test for Darwin: ASAN is calling abort by default on Darwin, which not detects as a crash

Modified:
    compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cc

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cc?rev=271323&r1=271322&r2=271323&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cc Tue May 31 15:09:56 2016
@@ -1,10 +1,10 @@
 // Test dedup_token_length
 // RUN: %clangxx -O0 %s -o %t
-// RUN: env %tool_options=''                    not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK0
-// RUN: env %tool_options='dedup_token_length=0' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK0
-// RUN: env %tool_options='dedup_token_length=1' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK1
-// RUN: env %tool_options='dedup_token_length=2' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK2
-// RUN: env %tool_options='dedup_token_length=3' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK3
+// RUN: env %tool_options='abort_on_error=0'                    not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK0
+// RUN: env %tool_options='abort_on_error=0, dedup_token_length=0' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK0
+// RUN: env %tool_options='abort_on_error=0, dedup_token_length=1' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK1
+// RUN: env %tool_options='abort_on_error=0, dedup_token_length=2' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK2
+// RUN: env %tool_options='abort_on_error=0, dedup_token_length=3' not %run %t 2>&1   | FileCheck %s --check-prefix=CHECK3
 
 // REQUIRES: stable-runtime
 // FIXME: implement SEGV handler in other sanitizers, not just asan.




More information about the llvm-commits mailing list