mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
du: use common error methods with show! instead of set_exit_code
This commit is contained in:
parent
6747e7261e
commit
88a62c4922
2 changed files with 9 additions and 25 deletions
|
@ -435,9 +435,7 @@ fn test_du_no_permission() {
|
|||
ts.ccmd("chmod").arg("-r").arg(SUB_DIR_LINKS).succeeds();
|
||||
|
||||
let result = ts.ucmd().arg(SUB_DIR_LINKS).fails();
|
||||
result.stderr_contains(
|
||||
"du: cannot read directory 'subdir/links': Permission denied (os error 13)",
|
||||
);
|
||||
result.stderr_contains("du: cannot read directory 'subdir/links': Permission denied");
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue