From 7b5da358cae82dddfab547ca04be204977cdeda6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 9 Oct 2009 16:44:40 -0700 Subject: [PATCH] handle compiler crash better: need to use exec to avoid seeing shell output about the crash. R=iant DELTA=2 (1 added, 0 deleted, 1 changed) OCL=35542 CL=35560 --- test/errchk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/errchk b/test/errchk index 0625dbca10..3aafddb82d 100755 --- a/test/errchk +++ b/test/errchk @@ -30,7 +30,7 @@ close(SRC); # Run command $cmd = join(' ', @ARGV); -open(CMD, "$cmd &1 |") || die "BUG: errchk: run $cmd: $!"; +open(CMD, "exec $cmd &1 |") || die "BUG: errchk: run $cmd: $!"; @out = grep { !/^ / } ; close CMD; @@ -42,6 +42,7 @@ if($? == 0) { if(!WIFEXITED($?)) { print STDERR "BUG: errchk: compiler crashed\n"; + print STDERR @out, "\n"; exit 0; } -- 2.48.1