2017-11-10 04:30:19 +08:00
|
|
|
# Check that libFuzzer honors SIGUSR1/SIGUSR2
|
|
|
|
RUN: rm -rf %t
|
|
|
|
RUN: mkdir -p %t
|
|
|
|
RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
|
|
|
|
|
|
|
|
RUN: %t/LFSIGUSR 2> %t/log & export PID=$!
|
|
|
|
RUN: sleep 2
|
|
|
|
RUN: kill -SIGUSR1 $PID
|
2017-11-10 08:26:23 +08:00
|
|
|
RUN: sleep 3
|
2017-11-10 04:30:19 +08:00
|
|
|
RUN: cat %t/log | FileCheck %s
|
|
|
|
|
|
|
|
CHECK: INFO: signal received, trying to exit gracefully
|
|
|
|
CHECK: INFO: libFuzzer: exiting as requested
|