Commit 26f8b707 authored by Alberto Donizetti's avatar Alberto Donizetti

testing: document that benchmark logs are dumped to stdout

The doc for testing.T and testing.B said that both test and benchmark
logs are printed to stderr, but in reality that wasn't the case.

CL 24311 fixed the doc for T, this change fixes it for B.

Fixes #36257

Change-Id: I0ff77ff44608f60320a1565b371c81e96039e71c
Reviewed-on: https://go-review.googlesource.com/c/go/+/212457Reviewed-by: default avatarGabriel Aszalos <gabriel.aszalos@gmail.com>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 4d5bb9c6
...@@ -86,7 +86,7 @@ type InternalBenchmark struct { ...@@ -86,7 +86,7 @@ type InternalBenchmark struct {
// may be called simultaneously from multiple goroutines. // may be called simultaneously from multiple goroutines.
// //
// Like in tests, benchmark logs are accumulated during execution // Like in tests, benchmark logs are accumulated during execution
// and dumped to standard error when done. Unlike in tests, benchmark logs // and dumped to standard output when done. Unlike in tests, benchmark logs
// are always printed, so as not to hide output whose existence may be // are always printed, so as not to hide output whose existence may be
// affecting benchmark results. // affecting benchmark results.
type B struct { type B struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment