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:
Jiahao XU 2025-01-18 01:39:01 +11:00
parent 81d70f92ab
commit 2af4197f42
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928

View file

@ -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());