Skip to content

Commit

Permalink
fuzz: with pipe, also capture stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Jan 13, 2024
1 parent 7b34e3e commit b3124f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/fuzz_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ 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 b3124f2

Please sign in to comment.