Skip to content

Conversation

@boomanaiden154
Copy link
Contributor

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.

Created using spr 1.3.7
@llvmbot
Copy link
Member

llvmbot commented Nov 19, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Aiden Grossman (boomanaiden154)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/168654.diff

1 Files Affected:

  • (modified) compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.cpp (+11-7)
diff --git a/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.cpp b/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.cpp
index 59dca32672901..ddf93881555f9 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.cpp
@@ -9,13 +9,17 @@
 // RUN: %clangxx_asan -dead_strip -O2 %s -o %t.exe
 //
 // note: we can not use -D on Darwin.
-// 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/'` \
-// RUN:  | grep " [TU] "                                                       \
-// RUN:  | grep -o "\(__asan_\|__ubsan_\|__sancov_\|__sanitizer_\)[^ ]*"       \
-// RUN:  | grep -v "__sanitizer_syscall"                                       \
-// RUN:  | grep -v "__sanitizer_weak_hook"                                     \
-// RUN:  | grep -v "__sanitizer_mz"                                            \
-// RUN:  | grep -v "__sancov_lowest_stack"                                     \
+// RUN: %clang_asan %s -fsanitize=address -### 2>&1                       \
+// RUN:   | grep "libclang_rt.asan_osx_dynamic.dylib"                     \
+// RUN:   | sed -e 's/.*"\(.*libclang_rt.asan_osx_dynamic.dylib\)".*/\1/' \
+// RUN:   | tr -d '\n' > %t.compiler_runtime_path
+// RUN: nm -g %{readfile:%t.compiler_runtime_path}                                         \
+// RUN:  | grep " [TU] "                                                                   \
+// RUN:  | grep -o "\(__asan_\|__ubsan_\|__sancov_\|__sanitizer_\)[^ ]*"                   \
+// RUN:  | grep -v "__sanitizer_syscall"                                                   \
+// RUN:  | grep -v "__sanitizer_weak_hook"                                                 \
+// RUN:  | grep -v "__sanitizer_mz"                                                        \
+// RUN:  | grep -v "__sancov_lowest_stack"                                                 \
 // RUN:  | sed -e "s/__asan_version_mismatch_check_v[0-9]+/__asan_version_mismatch_check/" \
 // RUN:  > %t.exports
 //

boomanaiden154 added a commit to boomanaiden154/llvm-project that referenced this pull request Nov 19, 2025
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.

Pull Request: llvm#168654
@github-actions
Copy link

🐧 Linux x64 Test Results

  • 5820 tests passed
  • 1319 tests skipped

@boomanaiden154 boomanaiden154 merged commit 7a39236 into main Nov 19, 2025
14 checks passed
@boomanaiden154 boomanaiden154 deleted the users/boomanaiden154/asan-fix-interface_symbols_darwincpp-on-internal-shell branch November 19, 2025 15:16
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Nov 19, 2025
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: llvm/llvm-project#168654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants