Make badopt.test stricter (by enabling `set -e').
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 8 Apr 2010 15:40:02 +0000 (17:40 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 25 Apr 2010 15:47:06 +0000 (17:47 +0200)
* 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/badopt.test

index d94ee8f..d8398cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-04-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
+       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.
index 59eb5fa..2da53e9 100755 (executable)
@@ -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