Skip to content

Commit

Permalink
Merge pull request #5832 from sylvestre/fuzz-pipe-stderr
Browse files Browse the repository at this point in the history
fuzz: with pipe, also capture stderr
  • Loading branch information
cakebaker authored Jan 13, 2024
2 parents cc01c5e + 19e1f26 commit 30ab838
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fuzz/fuzz_targets/fuzz_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 30ab838

Please sign in to comment.