mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-10-27 06:31:24 +03:00
Add additional integration test for failing command
This commit is contained in:
parent
e666b01e09
commit
d13454a0d4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user