diff options
Diffstat (limited to 'tests/mkdir/parents')
-rwxr-xr-x | tests/mkdir/parents | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/mkdir/parents b/tests/mkdir/parents index b7cbd8d16..edd100035 100755 --- a/tests/mkdir/parents +++ b/tests/mkdir/parents @@ -20,7 +20,7 @@ abs_srcdir=`pwd` cd $pwd || framework_failure=1 mkdir $tmp || framework_failure=1 cd $tmp || framework_failure=1 -mkdir e-dir || framework_failure=1 +mkdir -m 700 e-dir || framework_failure=1 if test $framework_failure = 1; then echo 'failure in testing framework' @@ -29,6 +29,16 @@ fi fail=0 +p=`ls -ld e-dir|sed 's/ .*//'` +case $p in drwx------);; *) fail=1;; esac +if test $fail = 1 + cat <<EOF >&2 +$0: Since it looks like you're running this test in a directory with +the sticky bit set, we're skipping this test. +EOF + (exit 77); exit +fi + # Make sure `mkdir -p existing-dir' succeeds # and that `mkdir existing-dir' fails. mkdir -p e-dir || fail=1 |