blob: 1672d1e0229c7f4f6c6c256c4f54b567d5e31e33 [file] [log] [blame]
# 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-DAG: BINGO
CHECK-DAG: ERROR: libFuzzer: deadly signal
RUN: bash -c "trap '%run %t -handle_trap=0' TRAP"