timeout: add a test for empty arg

This commit is contained in:
Sylvestre Ledru 2022-03-06 23:17:29 +01:00
parent dfcba58c82
commit 3955354b3a

View file

@ -45,3 +45,11 @@ fn test_zero_timeout() {
.no_stderr()
.no_stdout();
}
#[test]
fn test_command_empty_args() {
new_ucmd!()
.args(&["", ""])
.fails()
.stderr_contains("timeout: empty string");
}