mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: revise/standardize usage error testing (for dd, install, mktemp, rm, seq, and touch)
This commit is contained in:
parent
6a9660f9f6
commit
d78e1e7399
6 changed files with 45 additions and 62 deletions
|
@ -1303,12 +1303,12 @@ fn test_invalid_flag_arg_gnu_compatibility() {
|
|||
new_ucmd!()
|
||||
.args(&[format!("{}=", command)])
|
||||
.fails()
|
||||
.stderr_is("dd: invalid input flag: ‘’\nTry 'dd --help' for more information.");
|
||||
.usage_error("invalid input flag: ‘’");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&[format!("{}=29d", command)])
|
||||
.fails()
|
||||
.stderr_is("dd: invalid input flag: ‘29d’\nTry 'dd --help' for more information.");
|
||||
.usage_error("invalid input flag: ‘29d’");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue