blob: bceca712724cb420a9f8ca4c098c6cba26aeb5e4 [file] [log] [blame]
# 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> %t/log & export PID=$!
RUN: sleep 3
RUN: pkill -SIGUSR2 -f %t/ForkSIGUSR
RUN: sleep 3
RUN: cat %t/log | FileCheck %s --dump-input-on-failure
CHECK: libFuzzer: {{.*}}exiting