]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: test -i should not disable -c
authorShenghou Ma <minux.ma@gmail.com>
Mon, 27 Feb 2012 17:33:14 +0000 (12:33 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 27 Feb 2012 17:33:14 +0000 (12:33 -0500)
        Fixes #3104.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5699088

src/cmd/go/test.go

index a84013f209809c992fb760e86d6c0e6feea994f3..137cb6572b333f315abf07c7d30d8b4fc997efba 100644 (file)
@@ -299,7 +299,10 @@ func runTest(cmd *Command, args []string) {
                        a.deps = append(a.deps, b.action(modeInstall, modeInstall, p))
                }
                b.do(a)
-               return
+               if !testC {
+                       return
+               }
+               b.init()
        }
 
        var builds, runs, prints []*action