* tests/yacc-cxx.test: Enable `errexit' shell flag (the lack of which was masking the bug). (bar.cxx): Rename to ... (bar2.cxx): ... this, otherwise automake will (correctly) complain that object `bar.o' is created by both `bar.cxx' and `bar.c++'. (Makefile.am): Adjust. --- ChangeLog | 10 ++++++++++ tests/yacc-cxx.test | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 0553c95..1d1ceac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2011-06-28 Stefano Lattarini <stefano.lattar...@gmail.com> + yacc tests: fix bug in 'yacc-cxx.test' + * tests/yacc-cxx.test: Enable `errexit' shell flag (the lack of + which was masking the bug). + (bar.cxx): Rename to ... + (bar2.cxx): ... this, otherwise automake will (correctly) complain + that object `bar.o' is created by both `bar.cxx' and `bar.c++'. + (Makefile.am): Adjust. + +2011-06-28 Stefano Lattarini <stefano.lattar...@gmail.com> + lex tests: fix spurious link errors on Solaris On Solaris 10, linking of lex-generated programs was failing in a couple of lex tests with errors like this: diff --git a/tests/yacc-cxx.test b/tests/yacc-cxx.test index eacf628..e4afd95 100755 --- a/tests/yacc-cxx.test +++ b/tests/yacc-cxx.test @@ -21,6 +21,8 @@ required=yacc . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_CXX AC_PROG_YACC @@ -32,7 +34,7 @@ bin_PROGRAMS = foo1 foo2 foo3 foo4 foo1_SOURCES = parse1.yy foo.cc foo2_SOURCES = parse2.y++ bar.c++ foo3_SOURCES = parse3.yxx foo.cc -foo4_SOURCES = parse4.ypp bar.cxx +foo4_SOURCES = parse4.ypp bar2.cxx foo3_YFLAGS = -v foo4_YFLAGS = $(foo3_YFLAGS) @@ -67,7 +69,7 @@ int main (int argc, char **argv) } END cp foo.cc bar.c++ -cp foo.cc bar.cxx +cp foo.cc bar2.cxx $ACLOCAL $AUTOCONF -- 1.7.2.3