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/alias1.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/alias1.go')
-rw-r--r-- | test/alias1.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/alias1.go b/test/alias1.go index 4219af8cd..42cf69340 100644 --- a/test/alias1.go +++ b/test/alias1.go @@ -17,7 +17,7 @@ func main() { case uint8: // ok default: - println("byte != uint8") + panic("byte != uint8") } x = uint8(2) @@ -25,7 +25,7 @@ func main() { case byte: // ok default: - println("uint8 != byte") + panic("uint8 != byte") } rune32 := false @@ -37,7 +37,7 @@ func main() { // must be new code rune32 = true default: - println("rune != int and rune != int32") + panic("rune != int and rune != int32") } if rune32 { @@ -49,6 +49,6 @@ func main() { case rune: // ok default: - println("int (or int32) != rune") + panic("int (or int32) != rune") } } |