Skip to content

Commit 738d464

Browse files
committed
tail: fix race condition in broken pipe handling test
1 parent b739ff7 commit 738d464

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/by-util/test_tail.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4898,10 +4898,11 @@ fn test_when_piped_input_then_no_broken_pipe() {
48984898
}
48994899

49004900
#[test]
4901+
#[cfg(unix)]
49014902
fn test_when_output_closed_then_no_broken_pie() {
49024903
let mut cmd = new_ucmd!();
49034904
let mut child = cmd
4904-
.args(&[FOOBAR_TXT])
4905+
.args(&["-c", "100000", "/dev/zero"])
49054906
.set_stdout(Stdio::piped())
49064907
.run_no_wait();
49074908
// Dropping the stdout should not lead to an error.

0 commit comments

Comments
 (0)