]> Cypherpunks repositories - gostls13.git/commitdiff
gotest: fix build
authorRuss Cox <rsc@golang.org>
Mon, 4 Apr 2011 20:35:40 +0000 (16:35 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 4 Apr 2011 20:35:40 +0000 (16:35 -0400)
TBR=r
CC=golang-dev
https://golang.org/cl/4351047

src/cmd/gotest/gotest.go

index a041230f1ef89b13f9a338c6d84e93f79a0e0256..b6920639314d568fdd8c71aac30ceffbff28fc57 100644 (file)
@@ -149,6 +149,7 @@ func setEnvironment() {
 func getTestFileNames() {
        names := fileNames
        if len(names) == 0 {
+               var err os.Error
                names, err = filepath.Glob("[^.]*_test.go")
                if err != nil {
                        Fatalf("Glob pattern error: %s", err)