diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-12-23 00:42:24 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-12-23 00:42:24 +0100 |
commit | 39e4f27282435335e66827801e7ac9fbf9805155 (patch) | |
tree | 13e90f9823984aa25c51ae6fe6b5ef9e3c39ce6a /tests/gettext-macros.test | |
parent | b7d67d5551bc9d6dac34deda5f82e9292a2cdbb5 (diff) | |
download | automake-39e4f27282435335e66827801e7ac9fbf9805155.tar.gz |
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 <<END
`pwd`
END
/home/stefano
$ echo status = $?
status = 0
# An apparently innocuous function ...
$ kitty () { cat; }
# ... but hilarity ensues!
$ kitty <<END
`pwd`
END
/tmp/sh137723: cannot open
$ echo status = $?
status = 1
We need to work around this misbehaviour in a couple of our
tests (whose failures where causing cascading failures in a
lot of other tests).
* tests/gettext-macros.test: Avoid the use of command substitution
in a here-document passed to the `indent' function, by using the
`echo' builtin instead.
* tests/libtool-macros.test: Likewise.
See also:
<http://lists.gnu.org/archive/html/bug-autoconf/2011-12/msg00001.html>
Diffstat (limited to 'tests/gettext-macros.test')
-rwxr-xr-x | tests/gettext-macros.test | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/gettext-macros.test b/tests/gettext-macros.test index 7fe1274f1..5dd3a79d9 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 <<END - ACLOCAL_PATH="`pwd`/m4":\$ACLOCAL_PATH - export ACLOCAL_PATH -END + echo "ACLOCAL_PATH='`pwd`/m4':\$ACLOCAL_PATH" >> 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 |