summaryrefslogtreecommitdiff
path: root/tests/chmod
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-26 07:25:23 +0000
committerJim Meyering <jim@meyering.net>2005-09-26 07:25:23 +0000
commit6540422861f51141565eb894defc3dc46d8439b7 (patch)
treea11beab122ef61d652a3bb2267489e72db28f192 /tests/chmod
parentc5e9d787867425a6d409a24135bb8a83a2383869 (diff)
downloadcoreutils-6540422861f51141565eb894defc3dc46d8439b7.tar.xz
Work around the root cause of alpha-linux-1.sf.net test failure.
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.
Diffstat (limited to 'tests/chmod')
-rwxr-xr-xtests/chmod/usage3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/chmod/usage b/tests/chmod/usage
index 971d98065..31d0c6f97 100755
--- a/tests/chmod/usage
+++ b/tests/chmod/usage
@@ -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
;;