diff options
author | Jim Meyering <meyering@redhat.com> | 2008-10-04 17:12:08 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-10-04 17:12:08 +0200 |
commit | fbc5aa7c47597694d8973a134143a2281748eec6 (patch) | |
tree | 5f111696e731ab2fcb629505304cee34e720da92 | |
parent | 15f4d612df8eed7014f76825ad986fb8c769ec5d (diff) | |
download | coreutils-fbc5aa7c47597694d8973a134143a2281748eec6.tar.xz |
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.
-rw-r--r-- | tests/check.mk | 1 | ||||
-rwxr-xr-x | tests/install/strip-program | 2 |
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 |