]> Cypherpunks repositories - gostls13.git/commitdiff
testing: don't print CPU count for tests, only benchmarks
authorRob Pike <r@golang.org>
Mon, 15 Jun 2015 17:59:00 +0000 (10:59 -0700)
committerRob Pike <r@golang.org>
Mon, 15 Jun 2015 18:11:06 +0000 (18:11 +0000)
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>
src/testing/testing.go

index f64629fe53335ff3eb67cf1b7c73059fb78737b9..fb22e3a5592d4b3bb52598ca72350da2eac0a4ab 100644 (file)
@@ -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{}),