From 39e4f27282435335e66827801e7ac9fbf9805155 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 23 Dec 2011 00:42:24 +0100 Subject: [PATCH] tests: avoid spurious failure of libtool and gettext tests On Solaris 10 (and presumably earlier), /bin/sh trips up on here-documents that contains a command substitution *and* are fed to a shell function: # All as expected. $ cat < --- ChangeLog | 38 ++++++++++++++++++++++++++++++++++++++ tests/gettext-macros.test | 6 ++---- tests/libtool-macros.test | 6 ++---- 3 files changed, 42 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index d97d461..94b1b44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,41 @@ +2011-12-23 Stefano Lattarini + + tests: avoid spurious failure of libtool and gettext tests + + On Solaris 10 (and presumably earlier), /bin/sh trips up on + here-documents that contains a command substitution *and* are + fed to a shell function: + + # All as expected. + $ cat < + 2011-12-14 Stefano Lattarini tests: better handling of gettext and libtool requirements diff --git a/tests/gettext-macros.test b/tests/gettext-macros.test index 7fe1274..5dd3a79 100755 --- a/tests/gettext-macros.test +++ b/tests/gettext-macros.test @@ -46,10 +46,8 @@ else fi if $am_gettextize_command --force && test -f m4/gettext.m4; then - unindent >> get.sh <> get.sh + echo "export ACLOCAL_PATH" >> get.sh else # Older versions of gettext might not have a gettextize program # available, but this doesn't mean the user hasn't made the gettext diff --git a/tests/libtool-macros.test b/tests/libtool-macros.test index 31e5019..06a35d9 100755 --- a/tests/libtool-macros.test +++ b/tests/libtool-macros.test @@ -27,10 +27,8 @@ echo : >> get.sh echo ACLOCAL_AMFLAGS = -I m4 > Makefile.am if libtoolize --copy --install && test -f m4/libtool.m4; then - unindent >> get.sh <> get.sh + echo "export ACLOCAL_PATH" >> get.sh else # Libtoolize from libtool < 2.0 didn't support the `--install' option, # but this doesn't mean the user hasn't made the libtool macros -- 2.7.4