On Wed Dec 6 03:56:07 2023 +0000, Paul Gofman wrote:
This deserves a bit more detailed test IMO. I'd create a separate process for that to see if you can find it, and then also test whether terminated process (but for which you still have the open handle) is returned or not this way. It might probably be easier to move this test into process.c then where there are appropriate process creation helpers. In the current form the test apparently doesn't catch the bug in the implementation patch (get_process_by_id vs get_process_by_handle) with which actual processes enumeration is not possible.
got it, will write longer tests at some point