https://bugs.winehq.org/show_bug.cgi?id=28220
--- Comment #3 from Vincent Povirk madewokherd@gmail.com --- The tests succeed on Windows when redirected. That means it's a Wine bug, not a test bug.
Apparently, calling CreateProcess with DETACHED_PROCESS should prevent the child from inheriting std handles, regardless of whether they belong to a console. On Wine, this only happens for console handles.