Enable `errexit' shell flag in all tests cxx*.test.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 27 Apr 2010 10:33:32 +0000 (12:33 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 6 Jun 2010 12:06:57 +0000 (14:06 +0200)
* tests/cxx.test: Add call to `set -e'.  Related changes.
Bumped copyright years.
* tests/cxxansi.test: Likewise.
* tests/cxxcpp.test: Likewise.
* tests/cxxlibobj.test: Likewise.
* tests/cxxlink.test: Likewise.
* tests/cxxo.test: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/cxx.test
tests/cxxansi.test
tests/cxxcpp.test
tests/cxxlibobj.test
tests/cxxlink.test
tests/cxxo.test

index 69a89ff4cb1ab66d09a94ea5cb8d40bf12bcc82e..e62e54f46cda37dfb26cce12acef675b3184a65b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
+       Enable `errexit' shell flag in all tests cxx*.test.
+       * tests/cxx.test: Enabled `errexit' shell flag, and related
+       minor changes.
+       * tests/cxxansi.test: Likewise.
+       * tests/cxxcpp.test: Likewise.
+       * tests/cxxlibobj.test: Likewise.
+       * tests/cxxlink.test: Likewise.
+       * tests/cxxo.test: Likewise.
+
        Enable `errexit' shell flag in various tests.
        * tests/acoutnoq.test: Enabled `errexit' shell flag, and related
        minor changes.
index 2105c00819e86ea8bf110beed123f2876c44d9a6..aa2f22575935413e6a2e3975e34275b5c6012956 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 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
@@ -19,6 +19,8 @@
 
 . ./defs || Exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_PROG_CXX
 END
@@ -28,7 +30,7 @@ bin_PROGRAMS = hello
 hello_SOURCES = hello.c++
 END
 
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
 
 grep '^\.SUFFIXES:.*c[+][+]' Makefile.in
index da8bd6b41fb060399f5d9d85abb5993208c408ff..8bbe9b27848f10e7b546d2221b2762ff2d781b8a 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 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
@@ -19,6 +19,8 @@
 
 . ./defs || Exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_PROG_CXX
 AM_C_PROTOTYPES
@@ -36,10 +38,10 @@ END
 : > doe.C
 : > jane.C
 
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
 
 $FGREP 'jane$U' Makefile.in && Exit 1
-$FGREP 'doe$U' Makefile.in || Exit 1
+$FGREP 'doe$U' Makefile.in
 
 Exit 0
index 257505f6e47261a761a8be6c3779b83f0e598d92..09bb4eb8cfb90b3086aac53bf3578c7bb23d2caa 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1998, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1998, 2001, 2002, 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
 
 . ./defs || Exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_PROG_CXXCPP
 END
 
-
 : > Makefile.am
 
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
 
 grep '^CXXCPP' Makefile.in
index 82f9e85a56a23da0401b4a67d72336e8a516eb39..5f5ee308ddd5e723073b1487c97eb51f9b7ebcfa 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1997, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1997, 2001, 2002, 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,6 +18,8 @@
 
 . ./defs || Exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_PROG_CXX
 AC_PROG_CC
@@ -34,7 +36,7 @@ END
 : > doe.C
 : > jane.C
 
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
 
 grep CC Makefile.in
index b7a86f00dfcf13ba189388645cf732fbe0add911..66b3d2953f181f98e97af8cddc328e416a22b816 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1996, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 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,6 +18,8 @@
 
 . ./defs || Exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_PROG_CC
 AC_PROG_CXX
@@ -31,8 +33,8 @@ END
 : > lava.c
 : > lamp.cxx
 
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
 
 # Look for this macro not at the beginning of any line; that will have
 # to be good enough for now.
index 116df06c89114d712bd059cc16f33ed1f16adaee..a69fb2ab14d2eca31557fb35fa83ca0265880c58 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1996, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 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
@@ -17,6 +17,8 @@
 # Make sure C++ files are rewritten to ".o" and not just "o".
 . ./defs || Exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_PROG_CXX
 END
@@ -28,7 +30,7 @@ END
 
 : > doe.C
 
-$ACLOCAL || Exit 1
-$AUTOMAKE || Exit 1
+$ACLOCAL
+$AUTOMAKE
 
 $FGREP 'doe.$(OBJEXT)' Makefile.in