summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/check.mk1
-rwxr-xr-xtests/install/strip-program2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/check.mk b/tests/check.mk
index cdb199e32..0361d0c41 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 98f7febea..8dc838f0b 100755
--- a/tests/install/strip-program
+++ b/tests/install/strip-program
@@ -26,7 +26,7 @@ fi
working_umask_or_skip_
cat <<EOF > 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