diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-09 22:22:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-09 22:22:41 +0000 |
commit | 020235e16769c2dd35faba1baaee2b10c0291e64 (patch) | |
tree | 02bfc9c9d3b9d6be1bb4fd36a039407e0fe06829 /tests | |
parent | 445485d9b834a13b769b06bec85fcedd47ab9432 (diff) | |
download | coreutils-020235e16769c2dd35faba1baaee2b10c0291e64.tar.xz |
*** empty log message ***
Diffstat (limited to 'tests')
-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 |