diff options
| author | Matt Morehouse <mascasa@google.com> | 2019-05-15 22:26:48 +0000 |
|---|---|---|
| committer | Matt Morehouse <mascasa@google.com> | 2019-05-15 22:26:48 +0000 |
| commit | a05ffdbfc7e28523261c7599b4ebae8f7c99e823 (patch) | |
| tree | 643e7fa05638266440671a6266cddb061495614a | |
| parent | e43bdf144c9a56e465b28217dce3853ef76f5594 (diff) | |
| download | bcm5719-llvm-a05ffdbfc7e28523261c7599b4ebae8f7c99e823.tar.gz bcm5719-llvm-a05ffdbfc7e28523261c7599b4ebae8f7c99e823.zip | |
[libFuzzer] Echo fuzzer output on sigusr tests.
Improves debuggability when the fuzz target crashes.
llvm-svn: 360824
| -rw-r--r-- | compiler-rt/test/fuzzer/fork-sigusr.test | 2 | ||||
| -rw-r--r-- | compiler-rt/test/fuzzer/merge-sigusr.test | 2 |
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 5666ae7f4f3..8ec8f00a157 100644 --- a/compiler-rt/test/fuzzer/fork-sigusr.test +++ b/compiler-rt/test/fuzzer/fork-sigusr.test @@ -5,7 +5,7 @@ RUN: rm -rf %t RUN: mkdir -p %t RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t/ForkSIGUSR -RUN: %run %t/ForkSIGUSR -fork=3 -rss_limit_mb=128 -ignore_crashes=1 2> %t/log & export PID=$! +RUN: %run %t/ForkSIGUSR -fork=3 -rss_limit_mb=128 -ignore_crashes=1 2>&1 | tee %t/log & : RUN: sleep 3 RUN: pkill -SIGUSR2 -f %t/ForkSIGUSR RUN: sleep 6 diff --git a/compiler-rt/test/fuzzer/merge-sigusr.test b/compiler-rt/test/fuzzer/merge-sigusr.test index 1b16d3ccf83..9b55b85ecb3 100644 --- a/compiler-rt/test/fuzzer/merge-sigusr.test +++ b/compiler-rt/test/fuzzer/merge-sigusr.test @@ -15,7 +15,7 @@ RUN: echo e > %t/C2/e RUN: echo f > %t/C2/f RUN: echo g > %t/C2/g -RUN: %run %t/LFSIGUSR -merge=1 -merge_control_file=%t/MCF %t/C1 %t/C2 2> %t/log & export PID=$! +RUN: %run %t/LFSIGUSR -merge=1 -merge_control_file=%t/MCF %t/C1 %t/C2 2>&1 | tee %t/log & : RUN: sleep 3 RUN: pkill -SIGUSR2 -f %t/LFSIGUSR RUN: sleep 3 |

