Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

Allow allocators in testing

Open codemob-dev opened this issue 1 month ago • 1 comments

Fixes #1286

codemob-dev avatar Nov 20 '25 13:11 codemob-dev

I discourage this change. Sharing allocators, or in more general terms, resources across tests may result in absurd interactions which are very hard to track down. Instead allocators should be explicitly initialized with a helper function at the start of the test and defer deinited. Since we have our runner, we can hardcore that inside runner so it does init deinit before and after running the test.

Argmaster avatar Nov 20 '25 16:11 Argmaster