mirror of https://github.com/golang/go.git
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:
parent
3d5ddffa30
commit
3cd890dd5a
2
test/run
2
test/run
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue