Skip to content

Commit fdf5ece

Browse files
[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: llvm#165144
1 parent 39189c3 commit fdf5ece

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/test/msan/allocator_mapping.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
// mapping the heap early, in __msan_init.
44
//
55
// RUN: %clangxx_msan -O0 %s -o %t_1
6-
// RUN: %clangxx_msan -O0 -DHEAP_ADDRESS=$(%run %t_1) %s -o %t_2 && %run %t_2
6+
// RUN: %run %t_1 > %t.heap_address
7+
// RUN: %clangxx_msan -O0 -DHEAP_ADDRESS=%{readfile:%t.heap_address} %s -o %t_2 && %run %t_2
78
//
89
// This test only makes sense for the 64-bit allocator. The 32-bit allocator
910
// does not have a fixed mapping. Exclude platforms that use the 32-bit

0 commit comments

Comments
 (0)