maint: fix tests on solaris by using /usr/xpg4/bin
authorPádraig Brady <P@draigBrady.com>
Tue, 12 Jan 2010 10:18:21 +0000 (10:18 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 12 Jan 2010 10:26:27 +0000 (10:26 +0000)
* tests/check.mk: Prepend /usr/xpg4/bin to the $PATH if present.
Using the more standard utilities allows tests such as misc/printenv,
which uses the -E option to grep, to complete.

tests/check.mk

index c1ea85ab1112b388ac4342ccb43f4f564e045d40..86f7dc2a955d733b80ceb966f1cad3310d1bf784 100644 (file)
@@ -91,6 +91,7 @@ TESTS_ENVIRONMENT =                           \
   PERL='$(PERL)'                               \
   PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
   REPLACE_GETCWD=$(REPLACE_GETCWD)             \
+  ; test -d /usr/xpg4/bin && PATH='/usr/xpg4/bin$(PATH_SEPARATOR)'"$$PATH"; \
   PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
   ; shell_or_perl_