]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix the install/strip-program test
authorJim Meyering <meyering@redhat.com>
Sat, 4 Oct 2008 15:12:08 +0000 (17:12 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 4 Oct 2008 15:12:08 +0000 (17:12 +0200)
* 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.

tests/check.mk
tests/install/strip-program

index cdb199e32b2eea6354927b10a77f1f3be9784d22..0361d0c412b3491a909ed2afbdcd899e2c5d1f83 100644 (file)
@@ -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_
index 98f7febea6bb32f57083a71f3bb04e814349652d..8dc838f0b94012bec5c20f809f6d5e30f5b3fdb3 100755 (executable)
@@ -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