From f5c2f1870b4c0b3d98e65eb320031178a4a181e5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 24 Nov 2026 18:51:03 -0800 Subject: [PATCH] craft-xtask: pins runs the held-stderr test on Unix only On Windows a child inherits every inheritable handle of the process that starts it, so the lingering child in a_failing_command_returns_while_another_process_holds_its_stderr also holds the command's standard output. The call then ends with a read timeout instead of the exit error the test expects, which failed the Windows gate. The test now runs only on Unix. --- crates/xtask/src/pins.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/xtask/src/pins.rs b/crates/xtask/src/pins.rs index bcd816182a..bb587c6274 100644 --- a/crates/xtask/src/pins.rs +++ b/crates/xtask/src/pins.rs @@ -1670,6 +1670,10 @@ mod tests { } } + /// Unix only: on Windows a child inherits every inheritable handle of the process that starts it, + /// so the `linger` child also holds the command's standard output and the call ends with + /// [`Error::Read`]. + #[cfg(unix)] #[test] fn a_failing_command_returns_while_another_process_holds_its_stderr() { match orphaned("orphan-err") {