From 1204f740cfa6b77735877a87817a01fc4ac860a7 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 12 Oct 2011 16:56:39 -0700 Subject: [PATCH] gotest: correct the documentation of -parallel. 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cmd/gotest/doc.go b/src/cmd/gotest/doc.go index d60996103a..aedc55f11e 100644 --- a/src/cmd/gotest/doc.go +++ b/src/cmd/gotest/doc.go @@ -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 -- 2.50.0