summaryrefslogtreecommitdiff
path: root/tests/rm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-03 07:22:08 +0000
committerJim Meyering <jim@meyering.net>2006-09-03 07:22:08 +0000
commitfbb234c2a71d367ef229fde3d890aad8664df601 (patch)
tree32cb366bb77fcb226fdb4619dd7b55931732c539 /tests/rm
parent31ca1f9aec6111d26c1db48ad9f8ea8f8385715d (diff)
downloadcoreutils-fbb234c2a71d367ef229fde3d890aad8664df601.tar.xz
Use $CONFIG_HEADER, rather than hard-coding it.
* tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER.
Diffstat (limited to 'tests/rm')
-rw-r--r--tests/rm/Makefile.am1
-rwxr-xr-xtests/rm/inaccessible2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/rm/Makefile.am b/tests/rm/Makefile.am
index cfc4be08d..958b03ef6 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 e2c3cd791..08c5e3245 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"