aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2015-06-15 10:59:00 -0700
committerRob Pike <r@golang.org>2015-06-15 18:11:06 +0000
commit1f9026c0bd489e96a04541d2f65ecfdc3bc53720 (patch)
treedb95b77c00690ace6b262e8977bc92fea5e693c2 /src/testing
parent2c2770c3d4dea11ce96f63d8fcb40ca5dd230e33 (diff)
downloadgo-1f9026c0bd489e96a04541d2f65ecfdc3bc53720.tar.xz
testing: don't print CPU count for tests, only benchmarks
The number of CPUs is of value when benchmarking but mostly noise when testing. The recent change to default to the number of CPUs available has made the tests noisier and confusing. Fixes #11200 Change-Id: Ifc87d9ccb4177d73e304fb7ffcef4367bd163c9e Reviewed-on: https://go-review.googlesource.com/11121 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index f64629fe53..fb22e3a559 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -546,9 +546,6 @@ func RunTests(matchString func(pat, str string) (bool, error), tests []InternalT
continue
}
testName := tests[i].Name
- if procs != 1 {
- testName = fmt.Sprintf("%s-%d", tests[i].Name, procs)
- }
t := &T{
common: common{
signal: make(chan interface{}),