Skip to content

Commit 7a39236

Browse files
[ASan] Fix interface_symbols_darwin.cpp on internal shell
This test turned out to not actually be that interested. There was just a subshell usage that needed replacing with readfile, and then the test just works. Reviewers: fmayer, DanBlackwell, ndrewh Reviewed By: ndrewh Pull Request: #168654
1 parent 9cd40da commit 7a39236

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.cpp

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
// RUN: %clangxx_asan -dead_strip -O2 %s -o %t.exe
1010
//
1111
// note: we can not use -D on Darwin.
12-
// RUN: nm -g `%clang_asan %s -fsanitize=address -### 2>&1 | grep "libclang_rt.asan_osx_dynamic.dylib" | sed -e 's/.*"\(.*libclang_rt.asan_osx_dynamic.dylib\)".*/\1/'` \
13-
// RUN: | grep " [TU] " \
14-
// RUN: | grep -o "\(__asan_\|__ubsan_\|__sancov_\|__sanitizer_\)[^ ]*" \
15-
// RUN: | grep -v "__sanitizer_syscall" \
16-
// RUN: | grep -v "__sanitizer_weak_hook" \
17-
// RUN: | grep -v "__sanitizer_mz" \
18-
// RUN: | grep -v "__sancov_lowest_stack" \
12+
// RUN: %clang_asan %s -fsanitize=address -### 2>&1 \
13+
// RUN: | grep "libclang_rt.asan_osx_dynamic.dylib" \
14+
// RUN: | sed -e 's/.*"\(.*libclang_rt.asan_osx_dynamic.dylib\)".*/\1/' \
15+
// RUN: | tr -d '\n' > %t.compiler_runtime_path
16+
// RUN: nm -g %{readfile:%t.compiler_runtime_path} \
17+
// RUN: | grep " [TU] " \
18+
// RUN: | grep -o "\(__asan_\|__ubsan_\|__sancov_\|__sanitizer_\)[^ ]*" \
19+
// RUN: | grep -v "__sanitizer_syscall" \
20+
// RUN: | grep -v "__sanitizer_weak_hook" \
21+
// RUN: | grep -v "__sanitizer_mz" \
22+
// RUN: | grep -v "__sancov_lowest_stack" \
1923
// RUN: | sed -e "s/__asan_version_mismatch_check_v[0-9]+/__asan_version_mismatch_check/" \
2024
// RUN: > %t.exports
2125
//

0 commit comments

Comments
 (0)