summaryrefslogtreecommitdiff
path: root/test/testlib
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2012-11-07 12:33:54 -0800
committerIan Lance Taylor <iant@golang.org>2012-11-07 12:33:54 -0800
commit5a4efa4e2730cd0417e36d714d14ac8bafd89575 (patch)
tree8ae049319683ea4ff71d9a4a48c847c56e5ca413 /test/testlib
parent602f3b6323d1aac28250492e35668322479f3db8 (diff)
downloadgo-5a4efa4e2730cd0417e36d714d14ac8bafd89575.tar.gz
test: run index test by default
Running this test via "bash run" uncovered three different bugs (4344, 4348, 4353). We need to run it by default. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6832043
Diffstat (limited to 'test/testlib')
-rw-r--r--test/testlib12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/testlib b/test/testlib
index ceab8794b..5bb5669b7 100644
--- a/test/testlib
+++ b/test/testlib
@@ -61,7 +61,7 @@ build() {
}
runoutput() {
- go run "$D/$F.go" > tmp.go
+ go run "$D/$F.go" "$@" > tmp.go
go run tmp.go
}
@@ -96,6 +96,16 @@ errorcheck() {
errchk $zero $G -e $* $D/$F.go
}
+errorcheckoutput() {
+ zero=""
+ if [ "$1" = "-0" ]; then
+ zero="-0"
+ shift
+ fi
+ go run "$D/$F.go" "$@" > tmp.go
+ errchk $zero $G -e tmp.go
+}
+
skip() {
true
}