Fix use of pipe in tests/run-make/broken-pipe-no-ice/rmake.rs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
81d70f92ab
commit
2af4197f42
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ enum Binary {
|
|||
}
|
||||
|
||||
fn check_broken_pipe_handled_gracefully(bin: Binary, mut cmd: Command) {
|
||||
let (reader, writer) = std::pipe::pipe().unwrap();
|
||||
let (reader, writer) = std::io::pipe().unwrap();
|
||||
drop(reader); // close read-end
|
||||
cmd.stdout(writer).stderr(Stdio::piped());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue