[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FYI] {yacc-work} yacc tests: fix bug in 'yacc-cxx.test'
From: |
Stefano Lattarini |
Subject: |
[FYI] {yacc-work} yacc tests: fix bug in 'yacc-cxx.test' |
Date: |
Tue, 28 Jun 2011 14:04:32 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
* 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 <address@hidden>
+ 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 <address@hidden>
+
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [FYI] {yacc-work} yacc tests: fix bug in 'yacc-cxx.test',
Stefano Lattarini <=