1# Check that libFuzzer honors SIGUSR1/SIGUSR2
2# Disabled on Windows which does not have SIGUSR1/SIGUSR2.
3UNSUPPORTED: darwin, windows, aarch64
4RUN: rm -rf %t
5RUN: mkdir -p %t
6RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/ForkSIGUSR
7
8RUN: %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log & export PID=$!
9RUN: sleep 3
10RUN: kill -SIGUSR2 $PID
11RUN: sleep 6
12RUN: cat %t/log | FileCheck %s --dump-input=fail
13
14CHECK: libFuzzer: {{.*}}exiting
15