summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/errchk3
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;
}