summaryrefslogtreecommitdiff
path: root/tests/mkdir
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-10-14 15:18:34 +0100
committerPádraig Brady <P@draigBrady.com>2015-10-14 15:23:14 +0100
commitf9fb9acb0da91b40a2ba1a0bb93b4c3c72ed7aa6 (patch)
tree088904d3a7c22aa07e43ee837ce93d148eb23311 /tests/mkdir
parente6b3af647dd5611489b858a3fe14f0e3b1056ce2 (diff)
downloadcoreutils-f9fb9acb0da91b40a2ba1a0bb93b4c3c72ed7aa6.tar.xz
tests: avoid false failures with default ACLs
To reproduce: setfacl -dm group::rx . setfacl -dm other::rx . make check * init.cfg (require_no_default_acl_): A new function to skip when default ACLs are detected, or if the getfacl utility is not available then skip if any non LSM ACLs detected. * tests/cp/existing-perm-race.sh: Call require_no_default_acl_. * tests/mkdir/parents.sh: Likewise. * tests/mkdir/perm.sh: Likewise.
Diffstat (limited to 'tests/mkdir')
-rwxr-xr-xtests/mkdir/parents.sh1
-rwxr-xr-xtests/mkdir/perm.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/mkdir/parents.sh b/tests/mkdir/parents.sh
index ebdb52713..53eab8b36 100755
--- a/tests/mkdir/parents.sh
+++ b/tests/mkdir/parents.sh
@@ -19,6 +19,7 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ mkdir
skip_if_setgid_
+require_no_default_acl_ .
mkdir -m 700 e-dir || framework_failure_
diff --git a/tests/mkdir/perm.sh b/tests/mkdir/perm.sh
index ff0a57dce..d7d2efcef 100755
--- a/tests/mkdir/perm.sh
+++ b/tests/mkdir/perm.sh
@@ -20,6 +20,7 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ mkdir
skip_if_setgid_
+require_no_default_acl_ .
working_umask_or_skip_