Skip to content

Commit b8b84b7

Browse files
committed
cmd/go: clarify the -o testflag is only for copying the binary
Fixes #74769 Change-Id: Iebbaea8fb1a25e30a541a827815def9e269a8135 Reviewed-on: https://go-review.googlesource.com/c/go/+/709255 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Ian Alexander <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
1 parent c761b26 commit b8b84b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/go/alldocs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/test/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ In addition to the build flags, the flags handled by 'go test' itself are:
162162
Also emits build output in JSON. See 'go help buildjson'.
163163
164164
-o file
165-
Compile the test binary to the named file.
165+
Save a copy of the test binary to the named file.
166166
The test still runs (unless -c or -i is specified).
167167
If file ends in a slash or names an existing directory,
168168
the test is written to pkg.test in that directory.

0 commit comments

Comments
 (0)