mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/syntax: silence test function output
Don't print to stdout in non-verbose (-v) test mode. Exception: Timing output (2 lines) of TestStdLib. If we want to disable that as well we should use another flag to differenciate between -verbose output and measurement results. Leaving alone for now. Fixes #35223. Change-Id: Ie8160760e8db1138f9031888d654eaeab202128c Reviewed-on: https://go-review.googlesource.com/c/go/+/204039 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
a5936a4894
commit
4cb926001c
3 changed files with 14 additions and 3 deletions
|
|
@ -5,7 +5,6 @@
|
|||
package syntax
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
|
@ -21,6 +20,6 @@ func TestDump(t *testing.T) {
|
|||
}
|
||||
|
||||
if ast != nil {
|
||||
Fdump(os.Stdout, ast)
|
||||
Fdump(testOut(), ast)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue