cmd/go, testing: revise docs for test flags

In cmd/go's 'go help testflag':
* Rewrite list of flags to drop test. prefix on every name.
* Sort list of flags.
* Add example of using -bench to match all benchmarks.

In testing:
* Remove mention of undefined 'CPU group' concept.

Fixes #4488.
Fixes #4508.

R=adg
CC=golang-dev
https://golang.org/cl/7288053
This commit is contained in:
Russ Cox 2013-02-03 23:47:03 -05:00
parent 4e285bac6e
commit 89a2a8c8df
2 changed files with 49 additions and 42 deletions

View file

@ -281,7 +281,7 @@ func (c *common) Fatalf(format string, args ...interface{}) {
}
// Parallel signals that this test is to be run in parallel with (and only with)
// other parallel tests in this CPU group.
// other parallel tests.
func (t *T) Parallel() {
t.signal <- (*T)(nil) // Release main testing loop
<-t.startParallel // Wait for serial tests to finish