]> Cypherpunks repositories - gostls13.git/commit
If the compiler dumps core, bash will print a useless error
authorIan Lance Taylor <iant@golang.org>
Sat, 22 Aug 2009 00:41:18 +0000 (17:41 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 22 Aug 2009 00:41:18 +0000 (17:41 -0700)
commitf861c7f61b9503bb01d2781487c267f8c320d42d
treebc7498d2b7c8fb61febea53281e6cd9b1780371c
parentf50e7b156e5bb038cd979da87b8df8eb19ed056f
If the compiler dumps core, bash will print a useless error
message with the full path of the errchk script.  Catch that
by wrapping the if statement which invokes the compiler in a
subshell.  Use the $TMPOUT file as a flag to let the main
shell know whether the subshell ran.  Since the compiler
stdout and stderr are redirected, if the if statement produces
any output, then the compiler crashed, and we report that.

R=r,rsc
DELTA=14  (11 added, 1 deleted, 2 changed)
OCL=33690
CL=33692
test/errchk