diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-03-05 01:57:36 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-03-05 01:57:36 +0100 |
commit | 68694a871f05fcb33a3efb6aada7c084365ca272 (patch) | |
tree | 5d518d7456f1c30c24e2705d34507d57f3b28af8 /tests/alloca2.test | |
parent | ef95da1f6a426e26b5f6b3c219ec4d27f982ffc5 (diff) | |
download | automake-68694a871f05fcb33a3efb6aada7c084365ca272.tar.gz |
tests: fix bug in alloca*.test
* tests/alloca.test: Make grepping of automake stderr stricter,
add a trailing `:' command; also, add AC_PROG_CC to configure.in,
and create a dummy alloca.c file, to ensure that we fail for the
proper reason.
* tests/alloca2.test: Likewise. Also, look for LT_INIT, not
AC_PROG_LIBTOOL, in the error message (bug introduced with commit
v1.11-315-gd51e7b7 "libtool: suggest LT_INIT if LTLIBRARIES
primary is used").
From a report by Patrick Welche.
Diffstat (limited to 'tests/alloca2.test')
-rwxr-xr-x | tests/alloca2.test | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/alloca2.test b/tests/alloca2.test index 4ecd229f4..caf11a34d 100755 --- a/tests/alloca2.test +++ b/tests/alloca2.test @@ -20,13 +20,21 @@ set -e +cat >> configure.in <<'END' +AC_PROG_CC +END + cat > Makefile.am << 'END' noinst_LTLIBRARIES = libtu.la libtu_la_SOURCES = libtu_la_LIBADD = @LTALLOCA@ END +: > alloca.c + $ACLOCAL AUTOMAKE_fails -grep 'Makefile.am:1:.*AC_PROG_LIBTOOL' stderr -grep 'Makefile.am:3:.*ALLOCA' stderr +grep '^Makefile\.am:1:.*define.*LIBTOOL.* add .*LT_INIT' stderr +grep '^Makefile\.am:3:.*LTALLOCA' stderr + +: |