aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/test/fuzzer/sig-trap.test
blob: 30d9d47f4d81f60b0bfbae4817a9a6a55de1f0eb (plain)
1
2
3
4
5
6
7
8
9
10
11
# Check that libFuzzer handles SIGTRAP; disabled on Windows due to reliance on
# posix only features
UNSUPPORTED: target={{.*windows.*}}

RUN: %cpp_compiler %S/SigTrapTest.cpp -o %t

RUN: not %run %t            2>&1 | FileCheck %s
CHECK: BINGO
CHECK: ERROR: libFuzzer: deadly signal

RUN: trap "%run %t -handle_trap=0" TRAP