summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-23 14:59:05 +0000
committerJim Meyering <jim@meyering.net>2000-11-23 14:59:05 +0000
commitbd320fe27bb534465ea6d9d8a04c830303ec3c7d (patch)
tree8d4e2587a0538d7052c5806087025db83446bb94 /tests
parentbf319d9d88ff0798c1e01ddfb84927f88e955ed6 (diff)
downloadcoreutils-bd320fe27bb534465ea6d9d8a04c830303ec3c7d.tar.xz
Source sticky-check instead of open-coding it.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mkdir/parents12
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/mkdir/parents b/tests/mkdir/parents
index f32f00ec3..658136927 100755
--- a/tests/mkdir/parents
+++ b/tests/mkdir/parents
@@ -27,17 +27,9 @@ if test $framework_failure = 1; then
(exit 1); exit
fi
-fail=0
+. $srcdir/../sticky-check
-p=`ls -ld e-dir|sed 's/ .*//'`
-case $p in drwx------);; *) fail=1;; esac
-if test $fail = 1; then
- 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
+fail=0
# Make sure `mkdir -p existing-dir' succeeds
# and that `mkdir existing-dir' fails.