diff options
author | Alan Donovan <adonovan@google.com> | 2013-08-19 17:50:22 -0400 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2013-08-19 17:50:22 -0400 |
commit | d96de0633c2502b050478c96691727e67e7428be (patch) | |
tree | d10c4566d296748a23ce77835678881271e27518 /test/nilptr2.go | |
parent | ca2d32b46d7ac60efe63cc310a0261292afffe20 (diff) | |
download | go-d96de0633c2502b050478c96691727e67e7428be.tar.gz go-d96de0633c2502b050478c96691727e67e7428be.zip |
test: exit non-zero on error from nilptr2.go.
(For go.tools/ssa/interp/interp_test, which runs a subset of
these tests under this assumption.)
R=rsc, r
CC=golang-dev
https://golang.org/cl/13108043
Diffstat (limited to 'test/nilptr2.go')
-rw-r--r-- | test/nilptr2.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/nilptr2.go b/test/nilptr2.go index 57a5f8068f..250a0ee6a9 100644 --- a/test/nilptr2.go +++ b/test/nilptr2.go @@ -6,6 +6,8 @@ package main +import "os" + func main() { ok := true for _, tt := range tests { @@ -21,6 +23,7 @@ func main() { } if !ok { println("BUG") + os.Exit(1) } } |