diff options
author | Russ Cox <rsc@golang.org> | 2009-10-09 16:44:40 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-09 16:44:40 -0700 |
commit | 09135692454e5dd128d172a0bcf1f85409aedcdd (patch) | |
tree | 418f3378c0f5c8a09c4224b5f6032db25f4887a0 | |
parent | 780daa0742bf9bea1836aa63f8aefec408c023f2 (diff) | |
download | golang-09135692454e5dd128d172a0bcf1f85409aedcdd.tar.gz |
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
-rwxr-xr-x | test/errchk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/errchk b/test/errchk index 0625dbca1..3aafddb82 100755 --- a/test/errchk +++ b/test/errchk @@ -30,7 +30,7 @@ close(SRC); # Run command $cmd = join(' ', @ARGV); -open(CMD, "$cmd </dev/null 2>&1 |") || die "BUG: errchk: run $cmd: $!"; +open(CMD, "exec $cmd </dev/null 2>&1 |") || die "BUG: errchk: run $cmd: $!"; @out = grep { !/^ / } <CMD>; close CMD; @@ -42,6 +42,7 @@ if($? == 0) { if(!WIFEXITED($?)) { print STDERR "BUG: errchk: compiler crashed\n"; + print STDERR @out, "\n"; exit 0; } |