Commit d96de063 authored by Alan Donovan's avatar Alan Donovan

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
parent ca2d32b4
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
package main package main
import "os"
func main() { func main() {
ok := true ok := true
for _, tt := range tests { for _, tt := range tests {
...@@ -21,6 +23,7 @@ func main() { ...@@ -21,6 +23,7 @@ func main() {
} }
if !ok { if !ok {
println("BUG") println("BUG")
os.Exit(1)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment