]> Cypherpunks repositories - gostls13.git/commitdiff
gotest: correct the documentation of -parallel.
authorRob Pike <r@golang.org>
Wed, 12 Oct 2011 23:56:39 +0000 (16:56 -0700)
committerRob Pike <r@golang.org>
Wed, 12 Oct 2011 23:56:39 +0000 (16:56 -0700)
It said the default was zero, but it's actually $GOMAXPROCS.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5229059

src/cmd/gotest/doc.go

index d60996103a41975bfab3736af51d391355307601..aedc55f11e3d4820cfd26fca1b9f0713ddde3a6a 100644 (file)
@@ -66,7 +66,7 @@ Usage:
        6.out [-test.v] [-test.run pattern] [-test.bench pattern] \
                [-test.cpuprofile=cpu.out] \
                [-test.memprofile=mem.out] [-test.memprofilerate=1] \
-               [-test.parallel=0] \
+               [-test.parallel=$GOMAXPROCS] \
                [-test.timeout=10] [-test.short] \
                [-test.benchtime=3] [-test.cpu=1,2,3,4]
 
@@ -100,8 +100,9 @@ Use -test.run or -test.bench to limit profiling to a particular test
 or benchmark.
 
 The -test.parallel flag allows parallel execution of Test functions
-that call test.Parallel.  The value of the flag is the maximum number
-of tests to run simultaneously; by default, parallelism is disabled.
+that call test.Parallel.  The value of the flag is the maximum
+number of tests to run simultaneously; by default, it is set to the
+value of GOMAXPROCS.
 
 The -test.short flag tells long-running tests to shorten their run
 time.  It is off by default but set by all.bash so installations of