Skip to content

Commit

Permalink
Add additional integration test for failing command
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Feb 22, 2022
1 parent e666b01 commit d13454a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ fn fails_for_unknown_command_without_shell() {
));
}

#[cfg(unix)]
#[test]
fn fails_for_failing_command_without_shell() {
hyperfine()
.arg("--shell=none")
.arg("--runs=1")
.arg("false")
.assert()
.failure()
.stderr(predicate::str::contains(
"Command terminated with non-zero exit code",
));
}

#[test]
fn fails_for_unknown_setup_command() {
hyperfine()
Expand Down

0 comments on commit d13454a

Please sign in to comment.