mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
Merge pull request #5832 from sylvestre/fuzz-pipe-stderr
fuzz: with pipe, also capture stderr
This commit is contained in:
commit
30ab8382aa
1 changed files with 4 additions and 1 deletions
|
@ -232,7 +232,10 @@ pub fn run_gnu_cmd(
|
||||||
|
|
||||||
let output = if let Some(input_str) = pipe_input {
|
let output = if let Some(input_str) = pipe_input {
|
||||||
// We have an pipe input
|
// We have an pipe input
|
||||||
command.stdin(Stdio::piped()).stdout(Stdio::piped());
|
command
|
||||||
|
.stdin(Stdio::piped())
|
||||||
|
.stdout(Stdio::piped())
|
||||||
|
.stderr(Stdio::piped());
|
||||||
|
|
||||||
let mut child = command.spawn().expect("Failed to execute command");
|
let mut child = command.spawn().expect("Failed to execute command");
|
||||||
let child_stdin = child.stdin.as_mut().unwrap();
|
let child_stdin = child.stdin.as_mut().unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue