testing: test output interleaves with race-detector warnings #29156
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go version devel +353795c839 Sat Dec 8 00:27:08 2018 +0000 darwin/amd64
Does this issue reproduce with the latest release?
N/A. Built from source.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Running
go test -count=1 -json -race
produces output that's difficult for downstream tools to parse.https://play.golang.org/p/hpTaOLoTNcL
The reports
--- FAIL
line may appear anywhere between the goal posts:What did you expect to see?
I'd expect a uniform method of outputting tests detected by
-race
as true. Whether the non-race output is before or after is irrelevant, but it should be consistent.What did you see instead?
The
--- FAIL
line can appear in random places throughout the output:Example 1:
Example 2 (full):
The text was updated successfully, but these errors were encountered: