[compiler-rt] fdf5ece - [MSan] Make Test work with Internal Shell

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 12:42:31 PDT 2025


Author: Aiden Grossman
Date: 2025-10-30T12:42:27-07:00
New Revision: fdf5ece379188177be4329daa3fddca31bbedb8a

URL: https://github.com/llvm/llvm-project/commit/fdf5ece379188177be4329daa3fddca31bbedb8a
DIFF: https://github.com/llvm/llvm-project/commit/fdf5ece379188177be4329daa3fddca31bbedb8a.diff

LOG: [MSan] Make Test work with Internal Shell

This test used a subshell which is not supported by lit's internal
shell. Rewrite it to use the readfile substitution.

Reviewers: thurstond, fmayer

Reviewed By: thurstond, fmayer

Pull Request: https://github.com/llvm/llvm-project/pull/165144

Added: 
    

Modified: 
    compiler-rt/test/msan/allocator_mapping.cpp

Removed: 
    


################################################################################
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


        


More information about the llvm-commits mailing list