]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: improve the chmod/symlinks.sh test
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 30 Dec 2024 09:41:23 +0000 (10:41 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 30 Dec 2024 14:21:47 +0000 (14:21 +0000)
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

index 0317cc360bc76fb5e6d712cd6f978ad5e835b021..c2463fd4f5547935be06573e9f8cc6c19d93567a 100755 (executable)
@@ -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