mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #7811 from drinkcat/test-ls-improve-perm-io-errors
test_ls: Improve test_ls_perm_io_errors
This commit is contained in:
commit
9a04845c01
1 changed files with 5 additions and 1 deletions
|
@ -4489,6 +4489,7 @@ fn test_ls_perm_io_errors() {
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
at.mkdir("d");
|
at.mkdir("d");
|
||||||
at.symlink_file("/", "d/s");
|
at.symlink_file("/", "d/s");
|
||||||
|
at.touch("d/f");
|
||||||
|
|
||||||
scene.ccmd("chmod").arg("600").arg("d").succeeds();
|
scene.ccmd("chmod").arg("600").arg("d").succeeds();
|
||||||
|
|
||||||
|
@ -4497,7 +4498,10 @@ fn test_ls_perm_io_errors() {
|
||||||
.arg("-l")
|
.arg("-l")
|
||||||
.arg("d")
|
.arg("d")
|
||||||
.fails_with_code(1)
|
.fails_with_code(1)
|
||||||
.stderr_contains("Permission denied");
|
.stderr_contains("Permission denied")
|
||||||
|
.stdout_contains("total 0")
|
||||||
|
.stdout_contains("l????????? ? ? ? ? ? s")
|
||||||
|
.stdout_contains("-????????? ? ? ? ? ? f");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue