This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/testsuite] accommodate bison 1.875
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 7 Sep 2003 21:55:38 -0400
- Subject: [patch/testsuite] accommodate bison 1.875
This patchlet accommodates a change in bison from bison 1.35
to bison 1.875. I noticed this when comparing gdb 5.3.91
(which the release manager built with bison 1.35) to
gdb gdb_6_0-branch (which I build with bison 1.875).
The old code worked with bison 1.35 only.
Testing: tested on mainline only, with bison 1.875 only.
I actually did see the FAIL improve to a KFAIL.
I am committing this now.
Michael C
2003-09-07 Michael Chastain <mec@shout.net>
* gdb.cp/classes.exp: Accommodate both 'syntax error' and
'parse error'.
Index: gdb.cp/classes.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/classes.exp,v
retrieving revision 1.1
diff -u -r1.1 classes.exp
--- gdb.cp/classes.exp 23 Aug 2003 03:55:59 -0000 1.1
+++ gdb.cp/classes.exp 8 Sep 2003 01:49:57 -0000
@@ -682,8 +682,14 @@
send_gdb "print (ClassWithEnum::PrivEnum) 42\n"
gdb_expect {
-re "\\$\[0-9\]* = yellow.*$gdb_prompt $" { pass "print (ClassWithEnum::PrivEnum) 42" }
- -re "A parse error in expression, near `42'.\r\n$gdb_prompt $"
- { kfail "gdb/826" "print (ClassWithEnum::PrivEnum) 42" }
+ -re "A parse error in expression, near `42'.\r\n$gdb_prompt $" {
+ # bison 1.35
+ kfail "gdb/826" "print (ClassWithEnum::PrivEnum) 42"
+ }
+ -re "A syntax error in expression, near `42'.\r\n$gdb_prompt $" {
+ # bison 1.875
+ kfail "gdb/826" "print (ClassWithEnum::PrivEnum) 42"
+ }
-re "$gdb_prompt $" { fail "print (ClassWithEnum::PrivEnum) 42" }
timeout { fail "(timeout) print (ClassWithEnum::PrivEnum) 42" }
}