summaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorAiden Grossman <aidengrossman@google.com>2025-11-19 09:27:38 -0800
committerGitHub <noreply@github.com>2025-11-19 09:27:38 -0800
commited0c36ca2885f4b0d6b36d7645248e24c2e8573c (patch)
treedce2a73ff555fb17d573e8f4762a8c6c137890e8 /compiler-rt
parent1782e501f57ee5d3a1d2548f87ed4b82e7568b1d (diff)
[Fuzzer] make big-file-copy.test work with the internal shell (#168658)
This patch uses several shell features not supported by the internal shell, such as $? to get the exit code of a command, and exit. This patch adjusts the test to work with the internal shell by using bash to run the actual command with a zero exit code to ensure the file is deleted, and python to propagate the exit code up to lit.
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/fuzzer/big-file-copy.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler-rt/test/fuzzer/big-file-copy.test b/compiler-rt/test/fuzzer/big-file-copy.test
index 9565ed4e0bca..b92379460ac3 100644
--- a/compiler-rt/test/fuzzer/big-file-copy.test
+++ b/compiler-rt/test/fuzzer/big-file-copy.test
@@ -1,6 +1,5 @@
REQUIRES: darwin
UNSUPPORTED: ios
RUN: %cpp_compiler %S/BigFileCopy.cpp -o %t
-RUN: %run %t -runs=1 -rss_limit_mb=4096 2>big-file-out.txt; result=$?
-RUN: %run rm -f big-file.txt big-file-out.txt
-RUN: (exit $result)
+RUN: bash -c '%run %t -runs=1 -rss_limit_mb=4096 2>big-file-out.txt; result=$? \
+RUN: %run rm -f big-file.txt big-file-out.txt && exit $result'