diff --git a/test/nilptr2.go b/test/nilptr2.go index 57a5f8068f090ba1a8b59225ee7c93ff10624b97..250a0ee6a907aaa0dfb807edf590cf6ea5af1ddb 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) } }