Hello
The patch is pretty simple, the $noderef variable wasn't passed to the command. Therefor, it was running the same test 3 time. Cheers Sylvestre
From 932bb83b220481aba18d2473001948fe6d642346 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru <sylves...@debian.org> Date: Mon, 30 Dec 2024 10:41:23 +0100 Subject: [PATCH] chmod: Improve the symlinks.sh test The variable of the loop isn't passed to the command making it less interesting * tests/chmod/symlinks.sh: Fix the test case. --- tests/chmod/symlinks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/chmod/symlinks.sh b/tests/chmod/symlinks.sh index 0317cc360..c2463fd4f 100755 --- a/tests/chmod/symlinks.sh +++ b/tests/chmod/symlinks.sh @@ -77,7 +77,7 @@ count_755 0 # Dangling links should not induce an error if not dereferencing for noderef in '-h' '-RP' '-P'; do - chmod 755 --no-dereference a/dangle 2>err || fail=1 + chmod 755 --no-dereference $noderef a/dangle 2>err || fail=1 done # Dangling links should induce an error if dereferencing for deref in '' '--deref' '-R'; do -- 2.45.2