[compiler-rt] r360824 - [libFuzzer] Echo fuzzer output on sigusr tests.
Matt Morehouse via llvm-commits
llvm-commits at lists.llvm.org
Wed May 15 15:26:49 PDT 2019
Author: morehouse
Date: Wed May 15 15:26:48 2019
New Revision: 360824
URL: http://llvm.org/viewvc/llvm-project?rev=360824&view=rev
Log:
[libFuzzer] Echo fuzzer output on sigusr tests.
Improves debuggability when the fuzz target crashes.
Modified:
compiler-rt/trunk/test/fuzzer/fork-sigusr.test
compiler-rt/trunk/test/fuzzer/merge-sigusr.test
Modified: compiler-rt/trunk/test/fuzzer/fork-sigusr.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/fork-sigusr.test?rev=360824&r1=360823&r2=360824&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/fork-sigusr.test (original)
+++ compiler-rt/trunk/test/fuzzer/fork-sigusr.test Wed May 15 15:26:48 2019
@@ -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
Modified: compiler-rt/trunk/test/fuzzer/merge-sigusr.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/merge-sigusr.test?rev=360824&r1=360823&r2=360824&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/merge-sigusr.test (original)
+++ compiler-rt/trunk/test/fuzzer/merge-sigusr.test Wed May 15 15:26:48 2019
@@ -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
More information about the llvm-commits
mailing list