mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +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_stderr()
|
||||||
.no_stdout();
|
.no_stdout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_command_empty_args() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["", ""])
|
||||||
|
.fails()
|
||||||
|
.stderr_contains("timeout: empty string");
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue