summaryrefslogtreecommitdiff
path: root/tests/chmod
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-26 07:20:22 +0000
committerJim Meyering <jim@meyering.net>2005-09-26 07:20:22 +0000
commitc5e9d787867425a6d409a24135bb8a83a2383869 (patch)
tree1790b687ba895315e714ec57e057dc02e79d3ba2 /tests/chmod
parent31b44eef6e611e42e88d8d3ce23350b972cb2809 (diff)
downloadcoreutils-c5e9d787867425a6d409a24135bb8a83a2383869.tar.xz
Undo the s/files/file/ change, but add
comments about why the old version was desired.
Diffstat (limited to 'tests/chmod')
-rwxr-xr-xtests/chmod/usage6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/chmod/usage b/tests/chmod/usage
index 6f72c80f3..971d98065 100755
--- a/tests/chmod/usage
+++ b/tests/chmod/usage
@@ -77,8 +77,10 @@ for case in $cases; do
touch -- $files || framework_failure=1
chmod $args || fail=1
for file in $files; do
- rm -f -- $file && touch -- $file && rm -- $file || framework_failure=1
- chmod $args $file 2>/dev/null && fail=1
+ # 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
+ chmod $args 2>/dev/null && fail=1
done
;;
esac