summaryrefslogtreecommitdiff
path: root/tests/mkdir/parents
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-09 22:22:41 +0000
committerJim Meyering <jim@meyering.net>2000-11-09 22:22:41 +0000
commit020235e16769c2dd35faba1baaee2b10c0291e64 (patch)
tree02bfc9c9d3b9d6be1bb4fd36a039407e0fe06829 /tests/mkdir/parents
parent445485d9b834a13b769b06bec85fcedd47ab9432 (diff)
downloadcoreutils-020235e16769c2dd35faba1baaee2b10c0291e64.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/mkdir/parents')
-rwxr-xr-xtests/mkdir/parents12
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