aboutsummaryrefslogtreecommitdiff
path: root/tests/chmod.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-31 15:37:51 -0600
committerRob Landley <rob@landley.net>2016-01-31 15:37:51 -0600
commit324a4a018a4e949d2262ca622722948712ec4a4d (patch)
treebece2aac726044439e1c8c6135e225b2c1040738 /tests/chmod.test
parente5e286bf3cd8544ab161c508cbc810a104a7b186 (diff)
downloadtoybox-324a4a018a4e949d2262ca622722948712ec4a4d.tar.gz
chmod.test had umask assumptions which broke, so set explicit umask.
Diffstat (limited to 'tests/chmod.test')
-rwxr-xr-xtests/chmod.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/chmod.test b/tests/chmod.test
index 77106a69..887f738c 100755
--- a/tests/chmod.test
+++ b/tests/chmod.test
@@ -5,6 +5,8 @@
#testing "name" "command" "result" "infile" "stdin"
+umask 022
+
PERM="---""--x""-w-""-wx""r--""r-x""rw-""rwx"
num2perm()
@@ -21,7 +23,7 @@ num2perm()
mkdir dir
touch file
-# We don't need to test all 511 permissions
+# We don't need to test all 512 permissions
for u in 0 1 2 3 4 5 6 7
do
for g in 0 3 6