[llvm-branch-commits] [MSan] Make Test work with Internal Shell (PR #165144)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Oct 26 01:30:53 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
This test used a subshell which is not supported by lit's internal
shell. Rewrite it to use the readfile substitution.
---
Full diff: https://github.com/llvm/llvm-project/pull/165144.diff
1 Files Affected:
- (modified) compiler-rt/test/msan/allocator_mapping.cpp (+2-1)
``````````diff
diff --git a/compiler-rt/test/msan/allocator_mapping.cpp b/compiler-rt/test/msan/allocator_mapping.cpp
index e7a12da489152..6eaba7e16a5be 100644
--- a/compiler-rt/test/msan/allocator_mapping.cpp
+++ b/compiler-rt/test/msan/allocator_mapping.cpp
@@ -3,7 +3,8 @@
// mapping the heap early, in __msan_init.
//
// RUN: %clangxx_msan -O0 %s -o %t_1
-// RUN: %clangxx_msan -O0 -DHEAP_ADDRESS=$(%run %t_1) %s -o %t_2 && %run %t_2
+// RUN: %run %t_1 > %t.heap_address
+// RUN: %clangxx_msan -O0 -DHEAP_ADDRESS=%{readfile:%t.heap_address} %s -o %t_2 && %run %t_2
//
// This test only makes sense for the 64-bit allocator. The 32-bit allocator
// does not have a fixed mapping. Exclude platforms that use the 32-bit
``````````
</details>
https://github.com/llvm/llvm-project/pull/165144
More information about the llvm-branch-commits
mailing list