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