From 4cb2742d70f4160d6a8219d8f3962260fbfc15d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Mon, 25 Mar 2024 12:12:19 +0000 Subject: [PATCH] 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. --- tests/chmod/symlinks.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/chmod/symlinks.sh b/tests/chmod/symlinks.sh index 0bb6be0b1..0317cc360 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 -- 2.11.4.GIT