diff options
author | Alan Donovan <adonovan@google.com> | 2013-02-12 13:17:49 -0500 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2013-02-12 13:17:49 -0500 |
commit | 2964e5a06ff1cdcbb9f23a3dcc316994346dcbf5 (patch) | |
tree | bc57754fdf4396941d23568fe2ac29485713e4c2 /test/cmplxdivide.go | |
parent | 766708d9298221283199d661a846103a04434dc2 (diff) | |
download | go-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/cmplxdivide.go')
-rw-r--r-- | test/cmplxdivide.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cmplxdivide.go b/test/cmplxdivide.go index 92a98356d..40c84486d 100644 --- a/test/cmplxdivide.go +++ b/test/cmplxdivide.go @@ -45,4 +45,7 @@ func main() { fmt.Printf("%v/%v: expected %v error; got %v\n", t.f, t.g, t.out, x) } } + if bad { + panic("cmplxdivide failed.") + } } |