aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorAlberto Donizetti <alb.donizetti@gmail.com>2019-12-23 13:47:20 +0100
committerAlberto Donizetti <alb.donizetti@gmail.com>2019-12-23 20:42:35 +0000
commit26f8b7074b314f45c2ccaab9dcc0f5730fe8bb68 (patch)
treea8e83c5a5a5c90ecffe124ad8363727edd748d97 /src/testing
parent4d5bb9c60905b162da8b767a8a133f6b4edcaa65 (diff)
downloadgo-26f8b7074b314f45c2ccaab9dcc0f5730fe8bb68.tar.xz
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/+/212457 Reviewed-by: Gabriel Aszalos <gabriel.aszalos@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/benchmark.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go
index 04127727c1..93f461b07a 100644
--- a/src/testing/benchmark.go
+++ b/src/testing/benchmark.go
@@ -86,7 +86,7 @@ type InternalBenchmark struct {
// may be called simultaneously from multiple goroutines.
//
// 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
// affecting benchmark results.
type B struct {