From 52e7fcc46cac0ac06cecef3d35770b6f73fc5f46 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 30 Sep 2000 08:08:21 +0000 Subject: *** empty log message *** --- tests/mkdir/perm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/mkdir/perm') diff --git a/tests/mkdir/perm b/tests/mkdir/perm index a798fb535..75845ae2c 100755 --- a/tests/mkdir/perm +++ b/tests/mkdir/perm @@ -1,5 +1,6 @@ #!/bin/sh -# FIXME +# Verify that mkdir's `-m MODE' option works properly +# with various umask settings. if test "$VERBOSE" = yes; then set -x @@ -24,6 +25,8 @@ fail=0 # umask -m option resulting perm tests=' + 000 : :drwxrwxrwx: + 000 : -m 016 :d-----xrw-: 077 : :drwx------: 050 : :drwx-w-rwx: 050 : -m 312 :d-wx--x-w-: @@ -45,7 +48,8 @@ while :; do mkdir $mode d || fail=1 actual_perms=`ls -ld d | sed 's/ .*//'` - test "$expected_perms" = "$actual_perms" || fail=1 + test "$expected_perms" = "$actual_perms" \ + || { fail=1; echo expected $expected_perms, got $actual_perms; } rmdir d || fail=1 done -- cgit v1.2.3-54-g00ecf