[dev.fuzz] testing: errors in (*testing.F).Cleanup functions do not always report the failure #46993
Labels
FrozenDueToAge
fuzz
Issues related to native fuzzing support
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
When running
go test -fuzz
with-run=None
and without setting-v
, any errors/panics/failures inside of anf.Cleanup
function are not reported.This is likely related to #46631, as I discovered this issue while debugging that one. It appears we are handling
f.Cleanup
functions incorrectly when fuzzing right now. Possibly also related to changes from #46632.Update: From trying to repro locally, sometimes it does the right thing, sometimes it doesn't, so there's probably a race somewhere.
Reproducer target:
If run with
gotip test -run=None -fuzz=FuzzCleanupError
for a few seconds, then pressing Ctrl+C, the console doesn't print anything at all (neither an "ok" or a failure).If the target is executed with
-run
, then it does print the failure correctly:The same correctly reported failure occurs if run with
gotip test -run=None -fuzz=FuzzCleanupError -v
/cc @golang/fuzzing
The text was updated successfully, but these errors were encountered: