aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-09-24 00:06:31 -0400
committerRuss Cox <rsc@golang.org>2012-09-24 00:06:31 -0400
commit3cd890dd5a8e5be33ce6f65ab7690ba0e1c235ef (patch)
tree0e008fdcda0f2e19124a5ce17700154537976963 /test
parent3d5ddffa306dff2a4e3546a0421191fac45ed549 (diff)
downloadgo-3cd890dd5a8e5be33ce6f65ab7690ba0e1c235ef.tar.xz
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
Diffstat (limited to 'test')
-rwxr-xr-xtest/run2
-rw-r--r--test/testlib2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/run b/test/run
index 29a7905f0a..d206312a29 100755
--- a/test/run
+++ b/test/run
@@ -54,6 +54,8 @@ true >pass.out >times.out
exclude=false # exclude nothing
golden=golden.out
+rm -f tmp.go # generated by some tests, left behind if interrupted
+
filterout() {
grep '^'"$2"'$' $1 >/dev/null
}
diff --git a/test/testlib b/test/testlib
index 90f400dd89..29de7672ce 100644
--- a/test/testlib
+++ b/test/testlib
@@ -12,7 +12,7 @@ compile() {
compiledir() {
for gofile in $D/$F.dir/*.go
do
- $G ${gofile} || return 1
+ $G -I. "$gofile" || return 1
done
}