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