From: Rob Pike Date: Mon, 8 Apr 2013 06:27:26 +0000 (-0700) Subject: cmd/go: fix a misleading sentence X-Git-Tag: go1.1rc2~141 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=18ca86ebb3935f6cd3063c189fed0175a868ddba;p=gostls13.git cmd/go: fix a misleading sentence Apologies for not reviewing the previous CL; I was on the road. The text was misleading; execution is no more separate than with any other test. Rewritten. Dropped the odd adverb. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8439045 --- diff --git a/src/cmd/go/doc.go b/src/cmd/go/doc.go index 2867e5f3f9..d7fca80627 100644 --- a/src/cmd/go/doc.go +++ b/src/cmd/go/doc.go @@ -398,8 +398,8 @@ the file pattern "*_test.go". These additional files can contain test functions benchmark functions, and example functions. See 'go help testfunc' for more. Each listed package causes the execution of a separate test binary. -Additionally, test files that declare a package with the suffix "_test" will be -compiled and executed separately from the package test binary. +Test files that declare a package with the suffix "_test" will be compiled as a +separate package, and then linked and run with the main test binary. By default, go test needs no arguments. It compiles and tests the package with source in the current directory, including tests, and runs the tests. diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index 83178d5dae..b1db16f770 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -50,8 +50,8 @@ the file pattern "*_test.go". These additional files can contain test functions benchmark functions, and example functions. See 'go help testfunc' for more. Each listed package causes the execution of a separate test binary. -Additionally, test files that declare a package with the suffix "_test" will be -compiled and executed separately from the package test binary. +Test files that declare a package with the suffix "_test" will be compiled as a +separate package, and then linked and run with the main test binary. By default, go test needs no arguments. It compiles and tests the package with source in the current directory, including tests, and runs the tests.