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/escape.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/escape.go')
-rw-r--r-- | test/escape.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/escape.go b/test/escape.go index e8ede5276..252a1e59c 100644 --- a/test/escape.go +++ b/test/escape.go @@ -52,9 +52,11 @@ func chk(p, q *int, v int, s string) { func chkalias(p, q *int, v int, s string) { if p != q { println("want aliased pointers but got different after", s) + bad = true } if *q != v+1 { println("wrong value want", v+1, "got", *q, "after", s) + bad = true } } |