aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/test/fuzzer/sigint.test
blob: ac482d79b8e28293b43ad4deb8d98cf7af70dd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
REQUIRES: shell, msan
UNSUPPORTED: target=arm{{.*}}

# Check that libFuzzer exits gracefully under SIGINT with MSan.
RUN: rm -rf %t
RUN: mkdir -p %t
RUN: %msan_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGINT

RUN: %run %t/LFSIGINT 2> %t/log & export PID=$!
RUN: sleep 2
RUN: kill -SIGINT $PID
RUN: sleep 3
RUN: cat %t/log | FileCheck %s

CHECK: libFuzzer: run interrupted; exiting
CHECK-NOT: WARNING: MemorySanitizer