summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/fuzzer
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2019-05-17 19:33:31 +0000
committerMatt Morehouse <mascasa@google.com>2019-05-17 19:33:31 +0000
commit2fd318e5433410b46a06c80835eccfb42dfb3d66 (patch)
tree4a84135bcd73f24ee9ce8fe2dac6d53851d9328b /compiler-rt/test/fuzzer
parentfd0779181f55052c686e5c823a8005562a77dd9b (diff)
downloadbcm5719-llvm-2fd318e5433410b46a06c80835eccfb42dfb3d66.tar.gz
bcm5719-llvm-2fd318e5433410b46a06c80835eccfb42dfb3d66.zip
[libFuzzer] Dump input on failure for sigusr tests.
Should help with debugging failures on the bots. llvm-svn: 361070
Diffstat (limited to 'compiler-rt/test/fuzzer')
-rw-r--r--compiler-rt/test/fuzzer/fork-sigusr.test2
-rw-r--r--compiler-rt/test/fuzzer/merge-sigusr.test2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/fuzzer/fork-sigusr.test b/compiler-rt/test/fuzzer/fork-sigusr.test
index ac755436d9b..08ee25358bf 100644
--- a/compiler-rt/test/fuzzer/fork-sigusr.test
+++ b/compiler-rt/test/fuzzer/fork-sigusr.test
@@ -9,6 +9,6 @@ RUN: %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log & export PID=$!
RUN: sleep 3
RUN: kill -SIGUSR2 $PID
RUN: sleep 6
-RUN: cat %t/log | FileCheck %s
+RUN: cat %t/log | FileCheck %s --dump-input=fail
CHECK: libFuzzer: {{.*}}exiting
diff --git a/compiler-rt/test/fuzzer/merge-sigusr.test b/compiler-rt/test/fuzzer/merge-sigusr.test
index 587bce86726..8ef13bb67ec 100644
--- a/compiler-rt/test/fuzzer/merge-sigusr.test
+++ b/compiler-rt/test/fuzzer/merge-sigusr.test
@@ -21,7 +21,7 @@ RUN: sleep 3
RUN: pkill -SIGUSR2 -P $PID
RUN: kill -SIGUSR2 $PID
RUN: sleep 6
-RUN: cat %t/log | FileCheck %s
+RUN: cat %t/log | FileCheck %s --dump-input=fail
RUN: grep C2/g %t/MCF
RUN: grep STARTED %t/MCF
RUN: tail -n 2 %t/MCF | grep FT
OpenPOWER on IntegriCloud