Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/by-util/test_seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ fn test_broken_pipe_still_exits_success() {
use std::process::Stdio;

let mut child = new_ucmd!()
.args(&["1", "5"])
// Use an infinite sequence so a burst of output happens immediately after spawn.
// With small output the process can finish before stdout is closed and the Broken pipe never occurs.
.args(&["inf"])
.set_stdout(Stdio::piped())
.run_no_wait();

Expand Down
Loading