mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
uucore: add InvalidSuffix to ParseSizeError
This commit is contained in:
parent
e337826a11
commit
27dd59635a
10 changed files with 89 additions and 35 deletions
|
@ -94,7 +94,13 @@ fn test_du_invalid_size() {
|
|||
.arg("/tmp")
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_only(format!("du: invalid --{} argument '1fb4t'", s));
|
||||
.stderr_only(format!("du: invalid suffix in --{} argument '1fb4t'", s));
|
||||
ts.ucmd()
|
||||
.arg(format!("--{}=x", s))
|
||||
.arg("/tmp")
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_only(format!("du: invalid --{} argument 'x'", s));
|
||||
#[cfg(not(target_pointer_width = "128"))]
|
||||
ts.ucmd()
|
||||
.arg(format!("--{}=1Y", s))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue