Skip to content

Commit 8ea70aa

Browse files
committed
Update documentation of go test
Signed-off-by: Shogo Hida <[email protected]>
1 parent 3d8fc29 commit 8ea70aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ standard output, even if the test printed them to its own standard
8686
error. (The go command's standard error is reserved for printing
8787
errors building the tests.)
8888
89+
Place GOROOT/bin at the beginning of PATH in 'go test'.
90+
This causes tests and generators that execute 'go' as a subprocess
91+
to use the same go command as the parent 'go test' command.
92+
8993
Go test runs in two different modes:
9094
9195
The first, called local directory mode, occurs when go test is

0 commit comments

Comments
 (0)