Intermittent failures on Windows in a test of destroying the child are caused by spurious output on the stream being tested. The test requires the stream to be blocked with no bytes expected.
The destroy of the child process may have unpredictable effects that are reported by the vm as log messages.
Diverting output from the VM away from the stream under test and redirect the output to the inherited file descriptor so it appears in the output of the test.
The fix applies to all platforms, though the spurious output was only seen on Windows.