1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests/util: Use Stdio::null as default in UCommand for Child stdin instead of Stdio::piped

This commit is contained in:
Joining7943 2022-12-03 10:59:01 +01:00
parent c2e4da97da
commit 9b35c5d5c1
4 changed files with 32 additions and 10 deletions

View file

@ -111,7 +111,7 @@ mod linux_only {
use crate::common::util::*;
use std::fs::File;
use std::process::Output;
use std::process::{Output, Stdio};
fn make_broken_pipe() -> File {
use libc::c_int;
@ -135,6 +135,7 @@ mod linux_only {
#[allow(deprecated)]
let output = proc
.ignore_stdin_write_error()
.set_stdin(Stdio::piped())
.run_no_wait()
.pipe_in_and_wait_with_output(content.as_bytes());