]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Work around the root cause of alpha-linux-1.sf.net test failure.
authorJim Meyering <jim@meyering.net>
Mon, 26 Sep 2005 07:25:23 +0000 (07:25 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 26 Sep 2005 07:25:23 +0000 (07:25 +0000)
Remove all files in inner loop.
Otherwise, with a touch program that fails on unwritable files,
(this happens at least on linux-2.2.20) a -w file left behind
from a previous iteration could cause a spurious test failure.

tests/chmod/usage

index 971d98065990ed74c004aaa803430e4384719c83..31d0c6f97257d589ffe311113e288e7efdef2de5 100755 (executable)
@@ -79,7 +79,8 @@ for case in $cases; do
     for file in $files; do
       # Test for misparsing args by creating all $files but $file.
       # chmod has a bug if it succeeds even though $file is absent.
-      rm -f -- $files && touch -- $files && rm -- $file || framework_failure=1
+      rm -f -- $all_files && touch -- $files && rm -- $file \
+         || framework_failure=1
       chmod $args 2>/dev/null && fail=1
     done
     ;;