1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

fuzz: Simplify the compare_result function

This commit is contained in:
Sylvestre Ledru 2023-12-17 17:57:21 +01:00
parent be9b675ec1
commit b2e26f2aec
6 changed files with 29 additions and 45 deletions

View file

@ -203,12 +203,8 @@ fuzz_target!(|_data: &[u8]| {
compare_result(
"test",
&format!("{:?}", &args[1..]),
&rust_result.stdout,
&gnu_result.stdout,
&rust_result.stderr,
&gnu_result.stderr,
rust_result.exit_code,
gnu_result.exit_code,
&rust_result,
&gnu_result,
false, // Set to true if you want to fail on stderr diff
);
});