]> Cypherpunks repositories - gostls13.git/commitdiff
test: exit non-zero on error from nilptr2.go.
authorAlan Donovan <adonovan@google.com>
Mon, 19 Aug 2013 21:50:22 +0000 (17:50 -0400)
committerAlan Donovan <adonovan@google.com>
Mon, 19 Aug 2013 21:50:22 +0000 (17:50 -0400)
(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

test/nilptr2.go

index 57a5f8068f090ba1a8b59225ee7c93ff10624b97..250a0ee6a907aaa0dfb807edf590cf6ea5af1ddb 100644 (file)
@@ -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)
        }
 }