Unable to solve 'test process unexpectedly exited with code 0' in neotest-zig update to 0.16

Hi,

So, I’m trying to update neotest-zig to work with Zig 0.16, but I’m encountering this error:

error: test process unexpectedly exited with code 0

Everything works fine except this, but when I’m running it in the debugger I don’t get the error. So I guess there is a thread that doesn’t have the time to exit properly, but I can’t find where or how to solve it. I think It’s probably due to the new I/O interface.

If you have any ideas, they would be welcome and very much appreciated.

Here is the relevant code (a bit to big to share directly in this post): https://codeberg.org/Malcret/neotest-zig/src/branch/main/zig/neotest_runner.zig