Skip to content

Commit 1264620

Browse files
[UBSan] Fix test-darwin-interface.c on X86 Darwin with Internal Shell (llvm#169105)
This test was failing with the internal shell due to the use of subshells. This was not caught in my initial round of testing due to me only using a M4 Mac for running my tests.
1 parent c4921b7 commit 1264620

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

compiler-rt/test/ubsan_minimal/TestCases/test-darwin-interface.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@
33
//
44
// REQUIRES: x86_64-darwin
55

6-
// RUN: nm -jgU `%clangxx_min_runtime -fsanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | grep "libclang_rt.ubsan_minimal_osx_dynamic.dylib" | sed -e 's/.*"\(.*libclang_rt.ubsan_minimal_osx_dynamic.dylib\)".*/\1/'` | grep "^___ubsan_handle" \
6+
// RUN: %clangxx_min_runtime -fsanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | \
7+
// RUN: grep "libclang_rt.ubsan_minimal_osx_dynamic.dylib" | \
8+
// RUN: sed -e 's/.*"\(.*libclang_rt.ubsan_minimal_osx_dynamic.dylib\)".*/\1/' | \
9+
// RUN: tr -d '\n' > %t.dylib_path1
10+
// RUN: nm -jgU %{readfile:%t.dylib_path1} | grep "^___ubsan_handle" \
711
// RUN: | sed 's/_minimal//g' \
812
// RUN: > %t.minimal.symlist
913
//
10-
// RUN: nm -jgU `%clangxx_min_runtime -fno-sanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | grep "libclang_rt.ubsan_osx_dynamic.dylib" | sed -e 's/.*"\(.*libclang_rt.ubsan_osx_dynamic.dylib\)".*/\1/'` | grep "^___ubsan_handle" \
14+
// RUN: %clangxx_min_runtime -fno-sanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | \
15+
// RUN: grep "libclang_rt.ubsan_osx_dynamic.dylib" | \
16+
// RUN: sed -e 's/.*"\(.*libclang_rt.ubsan_osx_dynamic.dylib\)".*/\1/' | \
17+
// RUN: tr -d '\n' > %t.dylib_path2
18+
// RUN: nm -jgU %{readfile:%t.dylib_path2} | grep "^___ubsan_handle" \
1119
// RUN: | grep -vE "^___ubsan_handle_dynamic_type_cache_miss" \
1220
// RUN: | grep -vE "^___ubsan_handle_cfi_bad_type" \
1321
// RUN: | sed 's/_v1//g' \

0 commit comments

Comments
 (0)