cmd/go: -fuzz with -json attributes fuzz output to the wrong test #52636
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
I wrote a fuzz test, and ran it with
go test -json -fuzz Fuzz
.What did you expect to see?
I expected the JSON events for the fuzz output to have a
Test
name ofFuzzParse
.FuzzParse
is the function that produced the output.Example:
What did you see instead?
When I run
go test -fuzz Fuzz
the output looks right:When I run with the
-json
flag to gettest2json
output (go test -json -fuzz Fuzz
), the fuzz output is attributed to the wrong test. TheTest
field isTestParse/l_not_allowed
(the last unit test that happened to run before fuzz started), instead of the expected"Test": "FuzzParse"
.Full output (with the Time field removed) in the details below.
The text was updated successfully, but these errors were encountered: