testing: test output interleaves with race-detector warnings #29156
Labels
Milestone
Comments
It appears data race output is printed as soon as it's detected. Whatever test the |
This is not a See also #24929. |
CC @mpvl @josharian |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: