From: Jim Meyering Date: Thu, 10 Jul 2008 06:41:28 +0000 (+0200) Subject: make check: accommodate stricter POSIX-conforming shells X-Git-Tag: v7.0~132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1a1fcbf578a3d2be1d616b6675a7702c8fde49b;p=platform%2Fupstream%2Fcoreutils.git 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). --- 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)