summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/fuzzer/fork-sigusr.test
blob: 8ec8f00a157283ef03b639e5f0dd0e111b34ad76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Check that libFuzzer honors SIGUSR1/SIGUSR2
# Disabled on Windows which does not have SIGUSR1/SIGUSR2.
UNSUPPORTED: darwin, windows
RUN: rm -rf %t
RUN: mkdir -p %t
RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t/ForkSIGUSR

RUN: %run %t/ForkSIGUSR -fork=3 -rss_limit_mb=128 -ignore_crashes=1 2>&1 | tee %t/log & :
RUN: sleep 3
RUN: pkill -SIGUSR2 -f %t/ForkSIGUSR
RUN: sleep 6
RUN: cat %t/log | FileCheck %s

CHECK: libFuzzer: {{.*}}exiting
OpenPOWER on IntegriCloud