2018-09-05 01:08:47 +08:00
|
|
|
# FIXME: Disabled on Windows for now because of reliance on posix only features
|
|
|
|
# (eg: export, "&", pkill).
|
|
|
|
UNSUPPORTED: darwin, windows
|
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
|
|
|
|
|
2018-05-12 05:29:51 +08:00
|
|
|
RUN: %run %t/LFSIGUSR 2> %t/log & export PID=$!
|
2017-11-10 04:30:19 +08:00
|
|
|
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
|