Hash :
1c0c0581
Author :
Date :
2012-12-28T21:40:16
tests: a test about warnings in category 'obsolete' was failing spuriously * t/warnings-obsolete-default.sh : After our removal of $(INCLUDES) support, this test has been spuriously failing because it was assuming that a definition of the INCLUDES make variable only caused a warning rather than a fatal error. Fix it to use a definition of the newly obsolescent ACLOCAL_AMFLAGS make variable. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
#! /bin/sh
# Copyright (C) 2011-2012 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 <http://www.gnu.org/licenses/>.
# Check that automake warnings in the 'obsolete' category are enabled
# by default.
. test-init.sh
# We want (almost) complete control over automake options.
AUTOMAKE="$am_original_AUTOMAKE --foreign -Werror"
echo ACLOCAL_AMFLAGS = > Makefile.am
$ACLOCAL
AUTOMAKE_fails
grep '^Makefile\.am:1:.*ACLOCAL_AMFLAGS.*deprecated' stderr
# Check that we can override warnings about obsolete stuff.
$AUTOMAKE -Wno-obsolete
: