]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/test/fuzzer/sigusr.test
New upstream version 1.25.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / test / fuzzer / sigusr.test
1 # Check that libFuzzer honors SIGUSR1/SIGUSR2
2 RUN: rm -rf %t
3 RUN: mkdir -p %t
4 RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
5
6 RUN: %t/LFSIGUSR 2> %t/log & export PID=$!
7 RUN: sleep 2
8 RUN: kill -SIGUSR1 $PID
9 RUN: sleep 3
10 RUN: cat %t/log | FileCheck %s
11
12 CHECK: INFO: signal received, trying to exit gracefully
13 CHECK: INFO: libFuzzer: exiting as requested