test: minor fixes in run and testlib

Can tell this doesn't get run very often, but it is still important
for when you've broken everything else.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6547065
This commit is contained in:
Russ Cox 2012-09-24 00:06:31 -04:00
parent 3d5ddffa30
commit 3cd890dd5a
2 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,8 @@ true >pass.out >times.out
exclude=false # exclude nothing exclude=false # exclude nothing
golden=golden.out golden=golden.out
rm -f tmp.go # generated by some tests, left behind if interrupted
filterout() { filterout() {
grep '^'"$2"'$' $1 >/dev/null grep '^'"$2"'$' $1 >/dev/null
} }

View File

@ -12,7 +12,7 @@ compile() {
compiledir() { compiledir() {
for gofile in $D/$F.dir/*.go for gofile in $D/$F.dir/*.go
do do
$G ${gofile} || return 1 $G -I. "$gofile" || return 1
done done
} }