From fbb234c2a71d367ef229fde3d890aad8664df601 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 3 Sep 2006 07:22:08 +0000 Subject: [PATCH] Use $CONFIG_HEADER, rather than hard-coding it. * tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER. --- ChangeLog | 2 ++ tests/rm/Makefile.am | 1 + tests/rm/inaccessible | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d19671ed68..0dc620e332 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2006-09-03 Jim Meyering * tests/rm/inaccessible: Adjust for movement of config.h to lib/. + Use $CONFIG_HEADER, rather than hard-coding it. + * tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER. 2006-09-02 Paul Eggert diff --git a/tests/rm/Makefile.am b/tests/rm/Makefile.am index cfc4be08dd..958b03ef61 100644 --- a/tests/rm/Makefile.am +++ b/tests/rm/Makefile.am @@ -38,6 +38,7 @@ EXTRA_DIST = $(TESTS) TESTS_ENVIRONMENT = \ RM=../../src/rm \ MKDIR=../../src/mkdir \ + CONFIG_HEADER=$(CONFIG_HEADER) \ top_srcdir=$(top_srcdir) \ srcdir=$(srcdir) \ PERL="$(PERL)" \ diff --git a/tests/rm/inaccessible b/tests/rm/inaccessible index e2c3cd791e..08c5e32456 100755 --- a/tests/rm/inaccessible +++ b/tests/rm/inaccessible @@ -30,7 +30,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check # 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' $top_srcdir/lib/config.h > /dev/null && skip=no +grep '^#define HAVE_OPENAT' $CONFIG_HEADER > /dev/null && skip=no test -d /proc/self/fd && skip=no if test $skip = yes; then echo 1>&2 "$0: no openat support, so skipping this test" -- 2.47.3