]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: warnings in the 'obsolete' category: fix spurious failure
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 16 Sep 2012 07:40:46 +0000 (09:40 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 16 Sep 2012 07:40:46 +0000 (09:40 +0200)
* t/warnings-obsolete-default.sh: $(INCLUDES) is no longer supported
in any way by Automake-NG, to a point that its definition will just
be ignored, but cause no warning; so, instead, use the two-argument
invocation form of AM_INIT_AUTOMAKE to elicit warnings in the 'obsolete'
category.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/warnings-obsolete-default.sh

index fc439eab9ee2473df8ab0aa74765612639c16b00..6f4680da929ca21f76c0e683c9ad238ce18b9aee 100755 (executable)
 # We want (almost) complete control over automake options.
 AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror"
 
-echo AC_PROG_CC >> configure.ac
-
-cat > Makefile.am <<'END'
-bin_PROGRAMS = foo
-INCLUDES = -Ibar
+cat > configure.ac <<'END'
+AC_INIT
+AM_INIT_AUTOMAKE([foo], [1.0])
+AC_CONFIG_FILES([Makefile])
 END
 
+: > Makefile.am
+
 $ACLOCAL
 AUTOMAKE_fails
-grep '^Makefile\.am:2:.*INCLUDES.*AM_CPPFLAGS' stderr
+grep '^configure\.ac:2:.*AM_INIT_AUTOMAKE.*arguments.*deprecated' stderr
 
 # Check that we can override warnings about obsolete stuff.
 $AUTOMAKE -Wno-obsolete