mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
tail: fix race condition in broken pipe handling test
This commit is contained in:
parent
6a6ee59c63
commit
11d6fe0f6f
1 changed files with 2 additions and 1 deletions
|
|
@ -4898,10 +4898,11 @@ fn test_when_piped_input_then_no_broken_pipe() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn test_when_output_closed_then_no_broken_pie() {
|
||||
let mut cmd = new_ucmd!();
|
||||
let mut child = cmd
|
||||
.args(&[FOOBAR_TXT])
|
||||
.args(&["-c", "100000", "/dev/zero"])
|
||||
.set_stdout(Stdio::piped())
|
||||
.run_no_wait();
|
||||
// Dropping the stdout should not lead to an error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue