1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

timeout: support long form of --kill-after arg

Add support for the long form of the `--kill-after`
argument. Previously only the short form `-k` was supported.
This commit is contained in:
Jeffrey Finkelstein 2022-03-26 10:18:30 -04:00 committed by jfinkels
parent 98376d8fd5
commit c43ef8b704
2 changed files with 12 additions and 0 deletions

View file

@ -105,3 +105,13 @@ fn test_invalid_signal() {
.fails()
.usage_error("'invalid': invalid signal");
}
/// Test that the long form of the `--kill-after` argument is recognized.
#[test]
fn test_kill_after_long() {
new_ucmd!()
.args(&["--kill-after=1", "1", "sleep", "0"])
.succeeds()
.no_stdout()
.no_stderr();
}