[compiler-rt] [compiler-rt] Fix some tests to work with lit internal shell. (PR #160728)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 25 11:20:34 PDT 2025
================
@@ -1,14 +1,14 @@
# Check that libFuzzer honors SIGUSR1/SIGUSR2
# Disabled on Windows which does not have SIGUSR1/SIGUSR2.
-REQUIRES: shell
UNSUPPORTED: darwin, target={{.*windows.*}}, target=aarch64{{.*}}
RUN: rm -rf %t
RUN: mkdir -p %t
RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/ForkSIGUSR
-RUN: %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log & export PID=$!
+RUN: bash -c "nohup %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log &" | env
+RUN: ps auxx | grep ForkSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
----------------
boomanaiden154 wrote:
`ps auxx` seems to be a typo of `ps aux` (Although it seems like they both return the same output).
https://github.com/llvm/llvm-project/pull/160728
More information about the llvm-commits
mailing list