aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/test/fuzzer/sig-trap.test
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/fuzzer/sig-trap.test')
-rw-r--r--compiler-rt/test/fuzzer/sig-trap.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler-rt/test/fuzzer/sig-trap.test b/compiler-rt/test/fuzzer/sig-trap.test
new file mode 100644
index 0000000..ee47d2c
--- /dev/null
+++ b/compiler-rt/test/fuzzer/sig-trap.test
@@ -0,0 +1,7 @@
+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