1 # FIXME: Disabled on Windows for now because of reliance on posix only features
2 # (eg: export, "&", pkill).
3 UNSUPPORTED: darwin, target={{.*windows.*}}
4 # Check that libFuzzer honors SIGUSR1/SIGUSR2
7 RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
9 RUN: %run %t/LFSIGUSR 2> %t/log & export PID=$!
11 RUN: kill -SIGUSR1 $PID
13 RUN: cat %t/log | FileCheck %s
15 CHECK: INFO: signal received, trying to exit gracefully
16 CHECK: INFO: libFuzzer: exiting as requested