]> Cypherpunks repositories - gostls13.git/commitdiff
do not echo command in errchk,
authorRuss Cox <rsc@golang.org>
Wed, 22 Jul 2009 02:45:06 +0000 (19:45 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 22 Jul 2009 02:45:06 +0000 (19:45 -0700)
so that golden.out does not include
the name of the compiler (which is
arch-specific and shows up in diffs).

R=r,iant
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=31980
CL=31983

test/errchk
test/golden.out

index c85f36f9b663cd6cdab05b8ce73209a0cf56e85f..31e548aa55d5804fff2216e6586a4c46c4a89fa4 100755 (executable)
@@ -36,7 +36,7 @@ rm -f $TMPOUT $TMPERR $TMPALL $TMPTMP $TMPSTAT $TMPBUG
 trap "rm -f $TMPOUT $TMPERR $TMPALL $TMPTMP $TMPSTAT $TMPBUG" 0 1 2 3 14 15
 
 if $* >$TMPOUT 2>$TMPERR; then
-  echo 1>&2 "BUG: errchk: command succeeded unexpectedly: " "$@"
+  echo 1>&2 "BUG: errchk: command succeeded unexpectedly"
   cat $TMPOUT
   cat 1>&2 $TMPERR
   rm -f $TMPOUT $TMPERR
index 48283452fdfd495a611ce20ac486f39e05d4f984..5c50da5a753f6308b9862cc23c6c9158aa7cd694 100644 (file)
@@ -107,10 +107,10 @@ BUG: bug159
 BUG: should fail
 
 =========== bugs/bug169.go
-BUG: errchk: command succeeded unexpectedly:  6g bugs/bug169.go
+BUG: errchk: command succeeded unexpectedly
 
 =========== bugs/bug170.go
-BUG: errchk: command succeeded unexpectedly:  6g bugs/bug170.go
+BUG: errchk: command succeeded unexpectedly
 
 =========== fixedbugs/bug016.go
 fixedbugs/bug016.go:7: constant -3 overflows uint