From c06547cadeed50e85b1de661634a39f7321e562c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 29 Jul 2009 14:59:27 +0200 Subject: 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. --- tests/rm/inaccessible | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests/rm') 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` -- cgit v1.2.3-54-g00ecf