From: Shenghou Ma Date: Mon, 27 Feb 2012 17:33:14 +0000 (-0500) Subject: cmd/go: test -i should not disable -c X-Git-Tag: weekly.2012-03-04~133 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=56ae9032b23b089100e0e9c762f0e6326ec6990a;p=gostls13.git cmd/go: test -i should not disable -c Fixes #3104. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5699088 --- diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index a84013f209..137cb6572b 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -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