1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Merge pull request #3218 from sylvestre/timeout-test

timeout: add a test for empty arg
This commit is contained in:
Sylvestre Ledru 2022-03-12 09:43:36 +01:00 committed by GitHub
commit 2cc951ae79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");
}