[compiler-rt] [Fuzzer] make big-file-copy.test work with the internal shell (PR #168658)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 09:15:14 PST 2025
================
@@ -1,6 +1,6 @@
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: bash -c "%run %t -runs=1 -rss_limit_mb=4096 2>big-file-out.txt; echo -n $? > %t.result"
RUN: %run rm -f big-file.txt big-file-out.txt
-RUN: (exit $result)
+RUN: %python -c "import sys; sys.exit(%{readfile:%t.result})"
----------------
boomanaiden154 wrote:
Good point. Updated to use something more similar to what you proposed to avoid all the indirection through files that is mostly pointless.
https://github.com/llvm/llvm-project/pull/168658
More information about the llvm-commits
mailing list