mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 11:36:16 +00:00
Merge pull request #5423 from Luv-Ray/fix-pathchk-issue5314
`pathchk`: check empty path by default
This commit is contained in:
commit
a3c6d6d91e
2 changed files with 21 additions and 2 deletions
|
@ -19,8 +19,16 @@ fn test_default_mode() {
|
|||
// accept non-portable chars
|
||||
new_ucmd!().args(&["dir#/$file"]).succeeds().no_stdout();
|
||||
|
||||
// accept empty path
|
||||
new_ucmd!().args(&[""]).succeeds().no_stdout();
|
||||
// fail on empty path
|
||||
new_ucmd!()
|
||||
.args(&[""])
|
||||
.fails()
|
||||
.stderr_only("pathchk: '': No such file or directory\n");
|
||||
|
||||
new_ucmd!().args(&["", ""]).fails().stderr_only(
|
||||
"pathchk: '': No such file or directory\n\
|
||||
pathchk: '': No such file or directory\n",
|
||||
);
|
||||
|
||||
// fail on long path
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue