[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 13:13:24 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
----------------
boomanaiden154 wrote:

https://github.com/llvm/llvm-project/issues/156484 might be related.

https://github.com/llvm/llvm-project/pull/156487 is a test where I ran into something similar in BOLT.

https://github.com/llvm/llvm-project/pull/160728


More information about the llvm-commits mailing list