mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
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:
1 parent
b50cdb5e0e
commit
f5c2f1870b
1 file changed
+4
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user