From: Jim Meyering Date: Sun, 7 Aug 2011 20:09:42 +0000 (+0200) Subject: tests: avoid lack-of-support du test failure on HP-UX 11.31 X-Git-Tag: v8.13~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf9eb5282d39af448fa385cdd4ec656ad5f943c;p=thirdparty%2Fcoreutils.git tests: avoid lack-of-support du test failure on HP-UX 11.31 * tests/du/inaccessible-cwd: Skip this test on systems like HP-UX 11.31 that lack both the *at functions and the /proc/self/fd-based support we might have used to emulate them. Reported by Bruno Haible in http://debbugs.gnu.org/8846 --- diff --git a/tests/du/inaccessible-cwd b/tests/du/inaccessible-cwd index 2f16782d18..77e23a31bb 100755 --- a/tests/du/inaccessible-cwd +++ b/tests/du/inaccessible-cwd @@ -22,6 +22,11 @@ . "${srcdir=.}/init.sh"; path_prepend_ ../src print_ver_ du + +# Skip this test if your system has neither the openat-style functions +# nor /proc/self/fd support with which to emulate them. +require_openat_support_ + skip_if_root_ cwd=`pwd`