forked from OSchip/llvm-project
15 lines
390 B
Plaintext
15 lines
390 B
Plaintext
UNSUPPORTED: darwin
|
|
# Check that libFuzzer honors SIGUSR1/SIGUSR2
|
|
RUN: rm -rf %t
|
|
RUN: mkdir -p %t
|
|
RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
|
|
|
|
RUN: %run %t/LFSIGUSR 2> %t/log & export PID=$!
|
|
RUN: sleep 2
|
|
RUN: kill -SIGUSR1 $PID
|
|
RUN: sleep 3
|
|
RUN: cat %t/log | FileCheck %s
|
|
|
|
CHECK: INFO: signal received, trying to exit gracefully
|
|
CHECK: INFO: libFuzzer: exiting as requested
|