testing: TestMain should not require os.Exit · Issue #34129 · golang/go

TestMain is expected to call os.Exit itself. This leads to subtle issues with defer and panic that leads to much headscratching. I'm proposing that if TestMain doesn't call os.Exit, the tes...