[dev.fuzz] cmd/go: add fuzz timeout flag #46220
We may want to consider adding a
If -fuzztimeout=100ms, then we give each execution of the fuzz function 100 milliseconds to run, and consider it a crasher if that execution takes longer than 100ms to complete.
Note that libFuzzer does this with a -timeout flag.
We could also consider retrofitting the existing -timeout flag, but that might cause confusion. The description for timeout is "If a test binary runs longer than duration d, panic." If someone sets timeout while fuzzing, we don't want to panic when we hit that timeout (which we will if there is no crash).
Related to #44483.
The text was updated successfully, but these errors were encountered: