make check: accommodate stricter POSIX-conforming shells
authorJim Meyering <meyering@redhat.com>
Thu, 10 Jul 2008 06:41:28 +0000 (08:41 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 10 Jul 2008 06:41:28 +0000 (08:41 +0200)
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).

tests/check.mk

index c494da0..4fca283 100644 (file)
@@ -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)