From 8b4d015fe6c1a05adf12dbf7c7459fa26e1b8e9a Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Mon, 17 Nov 2025 17:57:34 -0800 Subject: [PATCH] [ORC] Make tests work with Internal Shell This patch makes objc-imageinfo.S work with the internal shell. The test uses a subshell to temporarily change the directory. The internal shell does not support subshells, so this construct was replaced with a pushd/popd sequence. --- compiler-rt/test/orc/TestCases/Darwin/arm64/objc-imageinfo.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-imageinfo.S b/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-imageinfo.S index 78454e33f7356..d5524020f2636 100644 --- a/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-imageinfo.S +++ b/compiler-rt/test/orc/TestCases/Darwin/arm64/objc-imageinfo.S @@ -5,7 +5,9 @@ // RUN: rm -rf %t // RUN: split-file %s %t -// RUN: (cd %t; %clang -c *.S) +// RUN: pushd %t +// RUN: %clang -c *.S +// RUN: popd // Check individual versions are loadable.