mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #4419 from sylvestre/test_invalid_multi_byte_characters
timeout: add a test to verify that it fails as expected
This commit is contained in:
commit
198e948f4a
1 changed files with 8 additions and 0 deletions
|
@ -121,6 +121,14 @@ fn test_invalid_signal() {
|
||||||
.usage_error("'invalid': invalid signal");
|
.usage_error("'invalid': invalid signal");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_invalid_multi_byte_characters() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["10€", "sleep", "0"])
|
||||||
|
.fails()
|
||||||
|
.usage_error("invalid time interval '10€'");
|
||||||
|
}
|
||||||
|
|
||||||
/// Test that the long form of the `--kill-after` argument is recognized.
|
/// Test that the long form of the `--kill-after` argument is recognized.
|
||||||
#[test]
|
#[test]
|
||||||
fn test_kill_after_long() {
|
fn test_kill_after_long() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue