mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 01:38:04 +00:00
timeout: add a test for empty arg
This commit is contained in:
parent
dfcba58c82
commit
3955354b3a
1 changed files with 8 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue