summaryrefslogtreecommitdiff
path: root/test/floatcmp.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/floatcmp.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/floatcmp.go')
-rw-r--r--test/floatcmp.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/floatcmp.go b/test/floatcmp.go
index f9f59a937..6c424ccd9 100644
--- a/test/floatcmp.go
+++ b/test/floatcmp.go
@@ -87,4 +87,7 @@ func main() {
println(t.name, "=", t.expr, "want", t.want)
}
}
+ if bad {
+ panic("floatcmp failed")
+ }
}