/ go Public
testing: parent B.Cleanup() functions do not run if a sub-benchmark panics #60129
help wanted 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 (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
The following benchmark named
b.Cleanup, then panics in a sub-benchmark. The "higher level" Cleanup functions never run, but the ones in the specific benchmark do. The equivalent code for a Test calling T.Cleanup(), the cleanup functions are run correctly. This is similar to bug as #41355, which had similar problems when panicing in a sub-test. I believe the parent functions should run.
What did you expect to see?
The cleanup functions should be called.
What did you see instead?
Only the cleanup function in the same benchmark are called.
The text was updated successfully, but these errors were encountered: