From: Stefano Lattarini Date: Thu, 8 Apr 2010 15:40:02 +0000 (+0200) Subject: Make badopt.test stricter (by enabling `set -e'). X-Git-Tag: v1.11.1b~85^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=891c5b53311ca7b7f079baff3fb9ce52a5371ad7;p=thirdparty%2Fautomake.git Make badopt.test stricter (by enabling `set -e'). * tests/badopt.test: Add call to `set -e'. Due to this change, an unexpected failure in the call to `$ACLOCAL' (whose outcome was previously unchecked) would cause the whole test to fail. Also, bumped the copyright years. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index d94ee8f1c..d8398ccbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-04-20 Stefano Lattarini + Make test badopt.test stricter (by enabling `set -e'). + * tests/badopt.test: Add call to `set -e'. Due to this change, + an unexpected failure in the call to `$ACLOCAL' (whose outcome + was previously unchecked) would cause the whole test to fail. + Also, bumped the copyright years. + Make test for configure.in vs. configure.ac stricter. * tests/configure.test: Use a configure.in file that provokes an automake error, to ensure configure.ac is preferred. diff --git a/tests/badopt.test b/tests/badopt.test index 59eb5fa32..2da53e99d 100755 --- a/tests/badopt.test +++ b/tests/badopt.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1998, 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 1998, 2002, 2003, 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 @@ -18,9 +18,9 @@ . ./defs || Exit 1 -cat > Makefile.am << 'END' -AUTOMAKE_OPTIONS = zardoz -END +set -e + +echo 'AUTOMAKE_OPTIONS = zardoz' > Makefile.am $ACLOCAL AUTOMAKE_fails