]> Cypherpunks repositories - gostls13.git/commit
testing: improve output
authorMarcel van Lohuizen <mpvl@golang.org>
Mon, 4 Apr 2016 16:22:29 +0000 (18:22 +0200)
committerMarcel van Lohuizen <mpvl@golang.org>
Tue, 5 Apr 2016 20:38:41 +0000 (20:38 +0000)
commit7e0d66020c49ef56158346ce18dc3f538393829e
tree211b1c18674c0cf93be8e81665742e945891ebd2
parent5e1b7bdecf7a8b5b5d06633758bf53e475902414
testing: improve output

This introduces a few changes
- Skipped benchmarks now print a SKIP line, also if there was
no output
- The benchmark name is only printed if there the benchmark
was not skipped or did not fail in the probe phase.

It also fixes a bug of doubling a skip message in chatty mode in
absense of a failure.

The chatty flag is now passed in the common struct to allow
for testing of the printed messages.

Fixes #14799

Change-Id: Ia8eb140c2e5bb467e66b8ef20a2f98f5d95415d5
Reviewed-on: https://go-review.googlesource.com/21504
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/testing/benchmark.go
src/testing/sub_test.go
src/testing/testing.go