summaryrefslogtreecommitdiff
path: root/test/init1.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
commit2964e5a06ff1cdcbb9f23a3dcc316994346dcbf5 (patch)
treebc57754fdf4396941d23568fe2ac29485713e4c2 /test/init1.go
parent766708d9298221283199d661a846103a04434dc2 (diff)
downloadgo-2964e5a06ff1cdcbb9f23a3dcc316994346dcbf5.tar.gz
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://codereview.appspot.com/7310087
Diffstat (limited to 'test/init1.go')
-rw-r--r--test/init1.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/init1.go b/test/init1.go
index a888ad744..f6eda6edf 100644
--- a/test/init1.go
+++ b/test/init1.go
@@ -33,6 +33,7 @@ func init() {
sys1 := memstats.Sys
if sys1-sys > chunk*50 {
println("allocated 1000 chunks of", chunk, "and used ", sys1-sys, "memory")
+ panic("init1")
}
}