Skip to content

Commit 30ab838

Browse files
authored
Merge pull request #5832 from sylvestre/fuzz-pipe-stderr
fuzz: with pipe, also capture stderr
2 parents cc01c5e + 19e1f26 commit 30ab838

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fuzz/fuzz_targets/fuzz_common.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ pub fn run_gnu_cmd(
232232

233233
let output = if let Some(input_str) = pipe_input {
234234
// We have an pipe input
235-
command.stdin(Stdio::piped()).stdout(Stdio::piped());
235+
command
236+
.stdin(Stdio::piped())
237+
.stdout(Stdio::piped())
238+
.stderr(Stdio::piped());
236239

237240
let mut child = command.spawn().expect("Failed to execute command");
238241
let child_stdin = child.stdin.as_mut().unwrap();

0 commit comments

Comments
 (0)