2019-05-01 07:46:52 +08:00
|
|
|
REQUIRES: msan
|
2021-11-20 14:03:34 +08:00
|
|
|
UNSUPPORTED: arm
|
2019-04-26 08:17:41 +08:00
|
|
|
|
|
|
|
# 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
|