forked from OSchip/llvm-project
15 lines
452 B
Plaintext
15 lines
452 B
Plaintext
# 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
|
|
|
|
CHECK: libFuzzer: {{.*}}exiting
|