From: Andrew Gerrand Date: Mon, 8 Apr 2013 06:03:19 +0000 (+1000) Subject: cmd/go: clarify what "pkg.test" means wrt the -c flag X-Git-Tag: go1.1rc2~142 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=212cb0375a6954121add281f355386740ed6fa27;p=gostls13.git cmd/go: clarify what "pkg.test" means wrt the -c flag Fixes #5230. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8507043 --- diff --git a/src/cmd/go/doc.go b/src/cmd/go/doc.go index 664d51f257..2867e5f3f9 100644 --- a/src/cmd/go/doc.go +++ b/src/cmd/go/doc.go @@ -410,6 +410,7 @@ non-test installation. In addition to the build flags, the flags handled by 'go test' itself are: -c Compile the test binary to pkg.test but do not run it. + (Where pkg is the last element of the package's import path.) -i Install packages that are dependencies of the test. diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index babdb18503..83178d5dae 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -62,6 +62,7 @@ non-test installation. In addition to the build flags, the flags handled by 'go test' itself are: -c Compile the test binary to pkg.test but do not run it. + (Where pkg is the last element of the package's import path.) -i Install packages that are dependencies of the test.