X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fdollarvar2.sh;h=ef2dd06af814f4608f472df3b8121b9059a5753f;hb=a7c00e1935726a32dca6871dd0f1b7eda28d0a5b;hp=7269ffdb3a28d3661183395cb47335ef3ab71a48;hpb=153f861b91221d14842c495efa0b1f10d9455855;p=platform%2Fupstream%2Fautomake.git diff --git a/t/dollarvar2.sh b/t/dollarvar2.sh old mode 100755 new mode 100644 index 7269ffd..ef2dd06 --- a/t/dollarvar2.sh +++ b/t/dollarvar2.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2009-2012 Free Software Foundation, Inc. +# Copyright (C) 2009-2013 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 @@ -65,27 +65,22 @@ grep 'recursive variable expansion' stderr cat >Makefile.am <<'EOF' x = 1 bla = $(foo$(x)) -noinst_PROGRAMS = foo -foo_CPPFLAGS = -Dwhatever +oops = $(var-with-dash) EOF -echo AC_PROG_CC >> configure.ac - -$ACLOCAL --force - # Can disable both 'portability' and 'portability-recursive' warnings. $AUTOMAKE -Wno-portability # Disabling 'portability-recursive' warnings should not disable # 'portability' warnings. AUTOMAKE_fails -Wportability -Wno-portability-recursive -grep AM_PROG_CC_C_O stderr +grep 'var-with-dash' stderr grep 'recursive variable expansion' stderr && exit 1 # Enabling 'portability-recursive' warnings should not enable # all the 'portability' warning. AUTOMAKE_fails -Wno-portability -Wportability-recursive -grep AM_PROG_CC_C_O stderr && exit 1 +grep 'var-with-dash' stderr && exit 1 grep 'recursive variable expansion' stderr :