From b6e8eaac45a01cb5de0e92a6c84b1519af0d2bbd Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Tue, 7 Nov 2023 10:27:44 -0500 Subject: [PATCH] Add special case for `afl-system-config`'s `--help` flag --- cargo-afl/src/bin/cargo-afl.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cargo-afl/src/bin/cargo-afl.rs b/cargo-afl/src/bin/cargo-afl.rs index 30c2e8c88..b0d4e1eea 100644 --- a/cargo-afl/src/bin/cargo-afl.rs +++ b/cargo-afl/src/bin/cargo-afl.rs @@ -481,7 +481,12 @@ mod tests { for &subcommand in SUBCOMMANDS { let output = cargo_afl(&[subcommand, "--help"]).output().unwrap(); - assert_failure(&output, Some(subcommand)); + // smoelius: `afl-system-config` has a `--help` flag. + if subcommand == "system-config" { + assert_success(&output, Some(subcommand)); + } else { + assert_failure(&output, Some(subcommand)); + } assert!(!String::from_utf8(output.stdout) .unwrap() .starts_with("Usage:"));