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.
This commit is contained in:
dotCooCoo committed 2026-11-24 18:51:03 -08:00
1 parent b50cdb5e0e
commit f5c2f1870b
1 file changed
+4
+4
View File
@@ -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") {