]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify what "pkg.test" means wrt the -c flag
authorAndrew Gerrand <adg@golang.org>
Mon, 8 Apr 2013 06:03:19 +0000 (16:03 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 8 Apr 2013 06:03:19 +0000 (16:03 +1000)
Fixes #5230.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8507043

src/cmd/go/doc.go
src/cmd/go/test.go

index 664d51f2579b6526b3a605221d9b470861e86d12..2867e5f3f9877ca2a67b70cc2a25e1a63b0517f3 100644 (file)
@@ -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.
index babdb18503e17b2fad1c19acc79d68a542ea6b25..83178d5daebfcd7cc8ebb3aa7ad3b86a5645d104 100644 (file)
@@ -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.