mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
du: adapt error msg to match GNU's
This commit is contained in:
parent
a5e611eb06
commit
d1e1e9ce0f
2 changed files with 9 additions and 5 deletions
|
@ -173,11 +173,15 @@ fn test_du_with_posixly_correct() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_du_basics_bad_name() {
|
||||
fn test_du_non_existing_files() {
|
||||
new_ucmd!()
|
||||
.arg("bad_name")
|
||||
.arg("non_existing_a")
|
||||
.arg("non_existing_b")
|
||||
.fails()
|
||||
.stderr_only("du: bad_name: No such file or directory\n");
|
||||
.stderr_only(concat!(
|
||||
"du: cannot access 'non_existing_a': No such file or directory\n",
|
||||
"du: cannot access 'non_existing_b': No such file or directory\n"
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue