mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
mktemp: exit with status 1 on usage errors
This commit is contained in:
parent
7861cc9dca
commit
dfc1c8a2dd
2 changed files with 6 additions and 1 deletions
|
@ -558,3 +558,8 @@ fn test_too_few_xs_suffix_directory() {
|
|||
.fails()
|
||||
.stderr_only("mktemp: too few X's in template 'aXXX'\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_too_many_arguments() {
|
||||
new_ucmd!().args(&["-q", "a", "b"]).fails().code_is(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue