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:
parent
c2e4da97da
commit
9b35c5d5c1
4 changed files with 32 additions and 10 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue