summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-07-10 08:41:28 +0200
committerJim Meyering <meyering@redhat.com>2008-07-10 08:41:28 +0200
commitb1a1fcbf578a3d2be1d616b6675a7702c8fde49b (patch)
tree85af83552c11d3748cab296f3d6f4f807290452d /tests
parent0fb0a03c5c86c114bd387300099910b1c8141689 (diff)
downloadcoreutils-b1a1fcbf578a3d2be1d616b6675a7702c8fde49b.tar.xz
make check: accommodate stricter POSIX-conforming shells
Without this, test-related variable settings were not exported to the shell_or_perl_ function when using dash or Solaris 11's /bin/sh. * tests/check.mk (TESTS_ENVIRONMENT): Use an explicit "export", so as not to rely on non-POSIX behavior of some /bin/sh (e.g., bash-based ones).
Diffstat (limited to 'tests')
-rw-r--r--tests/check.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/check.mk b/tests/check.mk
index c494da0fe..4fca28352 100644
--- a/tests/check.mk
+++ b/tests/check.mk
@@ -67,6 +67,7 @@ TESTS_ENVIRONMENT = \
$(SHELL) "$$1"; \
fi; \
}; \
+ export \
LOCALE_FR='$(LOCALE_FR)' \
abs_top_builddir='$(abs_top_builddir)' \
abs_top_srcdir='$(abs_top_srcdir)' \
@@ -86,7 +87,7 @@ TESTS_ENVIRONMENT = \
PERL='$(PERL)' \
REPLACE_GETCWD=$(REPLACE_GETCWD) \
PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
- shell_or_perl_
+ ; shell_or_perl_
TEST_LOGS = $(TESTS:=.log)