1 # Check that libFuzzer honors SIGUSR1/SIGUSR2
4 RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
6 RUN: %t/LFSIGUSR 2> %t/log & export PID=$!
8 RUN: kill -SIGUSR1 $PID
10 RUN: cat %t/log | FileCheck %s
12 CHECK: INFO: signal received, trying to exit gracefully
13 CHECK: INFO: libFuzzer: exiting as requested