1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

test_ls: Improve test_ls_perm_io_errors

Do more extensive test of the output to check long output for
metadata failure, without relying on GnuTests
This commit is contained in:
Nicolas Boichat 2025-04-21 11:12:26 +02:00
parent b5e0e2342b
commit a3e837ea99

View file

@ -4489,6 +4489,7 @@ fn test_ls_perm_io_errors() {
let at = &scene.fixtures;
at.mkdir("d");
at.symlink_file("/", "d/s");
at.touch("d/f");
scene.ccmd("chmod").arg("600").arg("d").succeeds();
@ -4497,7 +4498,10 @@ fn test_ls_perm_io_errors() {
.arg("-l")
.arg("d")
.fails_with_code(1)
.stderr_contains("Permission denied");
.stderr_contains("Permission denied")
.stdout_contains("total 0")
.stdout_contains("l????????? ? ? ? ? ? s")
.stdout_contains("-????????? ? ? ? ? ? f");
}
#[test]