From 2964e5a06ff1cdcbb9f23a3dcc316994346dcbf5 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 12 Feb 2013 13:17:49 -0500 Subject: 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 --- test/recover3.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/recover3.go') diff --git a/test/recover3.go b/test/recover3.go index 98700231e..ebfa0a307 100644 --- a/test/recover3.go +++ b/test/recover3.go @@ -71,6 +71,10 @@ func main() { inter = 1 check("type-concrete", func() { println(inter.(string)) }, "int, not string") check("type-interface", func() { println(inter.(m)) }, "missing method m") + + if didbug { + panic("recover3") + } } type m interface { -- cgit v1.2.1