xref: /llvm-project/compiler-rt/test/fuzzer/sigint.test (revision 03d51019d0c50a9a573a0d7c0848bb424cb21a18)
1REQUIRES: shell, msan
2UNSUPPORTED: target=arm{{.*}}
3
4# Check that libFuzzer exits gracefully under SIGINT with MSan.
5RUN: rm -rf %t
6RUN: mkdir -p %t
7RUN: %msan_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGINT
8
9RUN: %run %t/LFSIGINT 2> %t/log & export PID=$!
10RUN: sleep 2
11RUN: kill -SIGINT $PID
12RUN: sleep 3
13RUN: cat %t/log | FileCheck %s
14
15CHECK: libFuzzer: run interrupted; exiting
16CHECK-NOT: WARNING: MemorySanitizer
17