From d13454a0d49df8d8847369bbe3a424baae2e8663 Mon Sep 17 00:00:00 2001 From: David Peter Date: Tue, 22 Feb 2022 22:19:35 +0100 Subject: [PATCH] Add additional integration test for failing command --- tests/integration_tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index aa0255513..8a215c951 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -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()