[compiler-rt] c0503df - [sanitizers] fix print-module-map test on linux
Emily Shi via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 16:41:44 PST 2021
Author: Emily Shi
Date: 2021-03-05T16:41:37-08:00
New Revision: c0503df15d589b1373e092ac0be7ed39fe5e3597
URL: https://github.com/llvm/llvm-project/commit/c0503df15d589b1373e092ac0be7ed39fe5e3597
DIFF: https://github.com/llvm/llvm-project/commit/c0503df15d589b1373e092ac0be7ed39fe5e3597.diff
LOG: [sanitizers] fix print-module-map test on linux
Looks like the default options for halt_on_error are different between linux and mac. set it to 0 in the test so the behavior is the same on both platforms.
rdar://75110847
Reviewed By: delcypher
Differential Revision: https://reviews.llvm.org/D98089
Added:
Modified:
compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
index 23ef9dd57dac..395beee0d206 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
@@ -8,9 +8,12 @@
// RUN: %clangxx -DUSING_%tool_name %s -o %t -w
-// RUN: %env_tool_opts="print_module_map=0" not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MM0
-// RUN: %env_tool_opts="print_module_map=1" not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MM1
-// RUN: %env_tool_opts="print_module_map=2" not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MM2
+// RUN: %env_tool_opts="print_module_map=0:halt_on_error=0" not %run %t 2>&1 \
+// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-MM0
+// RUN: %env_tool_opts="print_module_map=1:halt_on_error=0" not %run %t 2>&1 \
+// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-MM1
+// RUN: %env_tool_opts="print_module_map=2:halt_on_error=0" not %run %t 2>&1 \
+// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-MM2
// tsan support pending rdar://67747473
// XFAIL: tsan
More information about the llvm-commits
mailing list