xref: /llvm-project/compiler-rt/test/fuzzer/sigusr.test (revision 03d51019d0c50a9a573a0d7c0848bb424cb21a18)
1# FIXME: Disabled on Windows for now because of reliance on posix only features
2# (eg: export, "&", pkill).
3REQUIRES: shell
4UNSUPPORTED: darwin, target={{.*windows.*}}
5# Check that libFuzzer honors SIGUSR1/SIGUSR2
6RUN: rm -rf %t
7RUN: mkdir -p %t
8RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
9
10RUN: %run %t/LFSIGUSR 2> %t/log & export PID=$!
11RUN: sleep 2
12RUN: kill -SIGUSR1 $PID
13RUN: sleep 3
14RUN: cat %t/log | FileCheck %s
15
16CHECK: INFO: signal received, trying to exit gracefully
17CHECK: INFO: libFuzzer: exiting as requested
18