From: Pádraig Brady Date: Mon, 25 Mar 2024 12:12:19 +0000 (+0000) Subject: tests: fix false failure on systems that can chmod symlinks X-Git-Tag: v9.5~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cb2742d70f4160d6a8219d8f3962260fbfc15d8;p=thirdparty%2Fcoreutils.git tests: fix false failure on systems that can chmod symlinks * tests/chmod/symlinks.sh: The count of adjusted modes was one more on systems where symlink modes can be adjusted. Therefore only include the non symlinks in the count. --- diff --git a/tests/chmod/symlinks.sh b/tests/chmod/symlinks.sh index 0bb6be0b16..0317cc360b 100755 --- a/tests/chmod/symlinks.sh +++ b/tests/chmod/symlinks.sh @@ -48,10 +48,8 @@ count_755() { reset_modes # -R (with default -H) does not deref traversed symlinks (only cli args) chmod 755 -R a/c || fail=1 -ls -l a/b > out || framework_failure_ -count_755 0 -ls -lR a/c > out || framework_failure_ -count_755 1 +ls -ld a/c a/c/file a/b/file > out || framework_failure_ +count_755 2 reset_modes # set a/c a/c/file and a/b/file (through symlink) to 755