aboutsummaryrefslogtreecommitdiff
path: root/test/zerodivide.go
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2013-02-12 13:17:49 -0500
committerAlan Donovan <adonovan@google.com>2013-02-12 13:17:49 -0500
commit052c942e20576f01f72d226d11aaf11e721009f3 (patch)
treea79450e9c97ad9bc9cac6b75655421c488408bd4 /test/zerodivide.go
parent2fdd60b9b66f26720ea571345785285d4037dce5 (diff)
downloadgo-052c942e20576f01f72d226d11aaf11e721009f3.tar.gz
go-052c942e20576f01f72d226d11aaf11e721009f3.zip
test: ensure all failing tests exit nonzero.
Previously merely printing an error would cause the golden file comparison (in 'bash run') to fail, but that is no longer the case with the new run.go driver. R=iant CC=golang-dev https://golang.org/cl/7310087
Diffstat (limited to 'test/zerodivide.go')
-rw-r--r--test/zerodivide.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/zerodivide.go b/test/zerodivide.go
index 673d1d18d8..9ab2713535 100644
--- a/test/zerodivide.go
+++ b/test/zerodivide.go
@@ -237,4 +237,7 @@ func main() {
fmt.Printf("%v/%v: expected %g error; got %g\n", t.f, t.g, t.out, x)
}
}
+ if bad {
+ panic("zerodivide")
+ }
}