rustix icon indicating copy to clipboard operation
rustix copied to clipboard

Add tests for `wait`

Open sunfishcode opened this issue 3 years ago • 0 comments

As discussed in https://github.com/bytecodealliance/rustix/pull/165, wait is a tricky function to test from within the test harness because it depends on knowing that nothing else in the process is creating child processes which the wait might wait for. To test it, we should ideally create a new process, and have the new process create a new process and wait for it, so we can be sure of what it's waiting for.

sunfishcode avatar Jan 12 '22 18:01 sunfishcode