0
1
mirror of https://github.com/golang/go synced 2025-05-22 05:48:03 +00:00

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
This commit is contained in:
Alan Donovan
2013-02-12 13:17:49 -05:00
parent 2fdd60b9b6
commit 052c942e20
21 changed files with 189 additions and 130 deletions

@ -115,7 +115,7 @@ func chantest() {
})
shouldBlock(func() {
x, ok := <-ch
println(x, ok)
println(x, ok) // unreachable
})
if len(ch) != 0 {