Merge pull request #5832 from sylvestre/fuzz-pipe-stderr

fuzz: with pipe, also capture stderr
This commit is contained in:
Daniel Hofstetter 2024-01-13 16:53:17 +01:00 committed by GitHub
commit 30ab8382aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,7 +232,10 @@ pub fn run_gnu_cmd(
let output = if let Some(input_str) = 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 child_stdin = child.stdin.as_mut().unwrap();