From: Ralf Wildenhues Date: Sun, 6 Jun 2010 17:44:10 +0000 (+0200) Subject: Coverage for aclocal diagnosing underquoted macros. X-Git-Tag: v1.11b~579^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d39d3f58880cb285cd35d2f67534aa322d01e58;p=platform%2Fupstream%2Fautomake.git Coverage for aclocal diagnosing underquoted macros. * tests/acloca23.test: New test. * tests/Makefile.am: Update. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 4f94715..f6f03cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-06 Ralf Wildenhues + + Coverage for aclocal diagnosing underquoted macros. + * tests/acloca23.test: New test. + * tests/Makefile.am: Update. + 2010-06-06 Stefano Lattarini Ralf Wildenhues diff --git a/tests/Makefile.am b/tests/Makefile.am index f709593..0db7851 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -66,6 +66,7 @@ acloca19.test \ acloca20.test \ acloca21.test \ acloca22.test \ +acloca23.test \ acoutnoq.test \ acoutpt.test \ acoutpt2.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 36fb41e..a59d1ba 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -304,6 +304,7 @@ acloca19.test \ acloca20.test \ acloca21.test \ acloca22.test \ +acloca23.test \ acoutnoq.test \ acoutpt.test \ acoutpt2.test \ diff --git a/tests/acloca23.test b/tests/acloca23.test new file mode 100755 index 0000000..1741e70 --- /dev/null +++ b/tests/acloca23.test @@ -0,0 +1,37 @@ +#! /bin/sh +# Copyright (C) 2010 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Ensure we diagnose underquoted AC_DEFUN's. + +. ./defs || Exit 1 + +set -e + +cat >> configure.in << 'END' +FOO +END + +mkdir m4 +cat >m4/foo.m4 <stderr && { cat stderr >&2; Exit 1; } +cat stderr >&2 +grep 'underquoted definition.*FOO' stderr +grep 'warning.*warning' stderr && Exit 1 + +: