summaryrefslogtreecommitdiff
path: root/tests/rm/inaccessible
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-07-29 14:59:27 +0200
committerJim Meyering <meyering@redhat.com>2009-07-30 17:47:21 +0200
commitc06547cadeed50e85b1de661634a39f7321e562c (patch)
tree4a52d4c001998c7c04908422a9f25813f864ddd9 /tests/rm/inaccessible
parent28e3946ef05bbf92bfce400f3f03f9abb312d63a (diff)
downloadcoreutils-c06547cadeed50e85b1de661634a39f7321e562c.tar.xz
tests: new function: require_openat_support_
* tests/rm/inaccessible: Factor out openat-support-detection code... * tests/test-lib.sh (require_openat_support_): ...into this new function.
Diffstat (limited to 'tests/rm/inaccessible')
-rwxr-xr-xtests/rm/inaccessible8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/rm/inaccessible b/tests/rm/inaccessible
index 314a3de6f..f40a342d0 100755
--- a/tests/rm/inaccessible
+++ b/tests/rm/inaccessible
@@ -26,13 +26,7 @@ fi
# Skip this test if your system has neither the openat-style functions
# nor /proc/self/fd support with which to emulate them.
-skip=yes
-grep '^#define HAVE_OPENAT' $CONFIG_HEADER > /dev/null && skip=no
-test -d /proc/self/fd && skip=no
-if test $skip = yes; then
- skip_test_ 'this system lacks openat support'
-fi
-
+require_openat_support_
skip_if_root_
p=`pwd`