Skip to content

Commit

Permalink
Add special case for afl-system-config's --help flag
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Nov 7, 2023
1 parent a2bb383 commit f0a1888
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cargo-afl/src/bin/cargo-afl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:"));
Expand Down

0 comments on commit f0a1888

Please sign in to comment.