Skip to content

style: Document gotchas when using defers with `os.Exit()`

Patrick Steinhardt requested to merge pks-style-tests-defer-exit into master

Using os.Exit() will cause the calling process to exit immediately without executing any deferred functions. In the context of our tests, this means that any created ondisk state may not get cleaned up correctly. This commit thus documents those pitfalls in "STYLE.md".

Merge request reports