[libFuzzer] Echo fuzzer output on sigusr tests.
authorMatt Morehouse <mascasa@google.com>
Wed, 15 May 2019 22:26:48 +0000 (22:26 +0000)
committerMatt Morehouse <mascasa@google.com>
Wed, 15 May 2019 22:26:48 +0000 (22:26 +0000)
Improves debuggability when the fuzz target crashes.

llvm-svn: 360824

compiler-rt/test/fuzzer/fork-sigusr.test
compiler-rt/test/fuzzer/merge-sigusr.test

index 5666ae7..8ec8f00 100644 (file)
@@ -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
index 1b16d3c..9b55b85 100644 (file)
@@ -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