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) } }