]> Cypherpunks repositories - gostls13.git/commitdiff
test: minor fixes in run and testlib
authorRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 04:06:31 +0000 (00:06 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 04:06:31 +0000 (00:06 -0400)
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

test/run
test/testlib

index 29a7905f0a480aa2dd06d45061f17c6bebba5934..d206312a29c729c7a3f85b262f5fc3e2b2a9b8b8 100755 (executable)
--- 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
 }
index 90f400dd891efcb66570e76a09d17c058604de27..29de7672ce1b6416898ecbf27ecebbebf951f0a9 100644 (file)
@@ -12,7 +12,7 @@ compile() {
 compiledir() {
        for gofile in $D/$F.dir/*.go
        do
-               $G ${gofile} || return 1
+               $G -I. "$gofile" || return 1
        done
 }