From: Jim Meyering Date: Sat, 4 Oct 2008 15:12:08 +0000 (+0200) Subject: tests: fix the install/strip-program test X-Git-Tag: v7.0~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbc5aa7c47597694d8973a134143a2281748eec6;p=thirdparty%2Fcoreutils.git tests: fix the install/strip-program test * tests/install/strip-program: Use $PREFERABLY_POSIX_SHELL, not POSIX_SHELL. The latter may be empty, and would fail on OpenBSD 3.9. * tests/check.mk (TESTS_ENVIRONMENT): Propagate PREFERABLY_POSIX_SHELL to tests. --- diff --git a/tests/check.mk b/tests/check.mk index cdb199e32b..0361d0c412 100644 --- a/tests/check.mk +++ b/tests/check.mk @@ -87,6 +87,7 @@ TESTS_ENVIRONMENT = \ PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \ PACKAGE_VERSION=$(PACKAGE_VERSION) \ PERL='$(PERL)' \ + PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \ REPLACE_GETCWD=$(REPLACE_GETCWD) \ PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \ ; shell_or_perl_ diff --git a/tests/install/strip-program b/tests/install/strip-program index 98f7febea6..8dc838f0b9 100755 --- a/tests/install/strip-program +++ b/tests/install/strip-program @@ -26,7 +26,7 @@ fi working_umask_or_skip_ cat < b || framework_failure -#!$POSIX_SHELL +#!$PREFERABLY_POSIX_SHELL sed s/b/B/ \$1 > \$1.t && mv \$1.t \$1 EOF chmod a+x b || framework_failure