diff options
author | Michael Chastain <mec.gnu@mindspring.com> | 2003-09-08 02:00:11 +0000 |
---|---|---|
committer | Michael Chastain <mec.gnu@mindspring.com> | 2003-09-08 02:00:11 +0000 |
commit | 3907f286b089a7de870fae9332d0ab39bb672359 (patch) | |
tree | 11106caabc62a47c088a3e94e9f9a86f81b9ff66 | |
parent | 400cb1f6ffd55fff2c067b4ba1a5b9e3cc5211bc (diff) | |
download | gdb-3907f286b089a7de870fae9332d0ab39bb672359.tar.gz |
2003-09-07 Michael Chastain <mec@shout.net>
* gdb.cp/classes.exp: Accommodate both 'syntax error' and
'parse error'.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/classes.exp | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5919e73b68d..21d4cd257af 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-09-07 Michael Chastain <mec@shout.net> + + * gdb.cp/classes.exp: Accommodate both 'syntax error' and + 'parse error'. + 2003-09-07 Mark Kettenis <m.kettenis@osp.nl> * gdb.arch/i386-prologue.exp: Add checks for saved registers. diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp index 3f398acc5ec..60f5ab75dc4 100644 --- a/gdb/testsuite/gdb.cp/classes.exp +++ b/gdb/testsuite/gdb.cp/classes.exp @@ -682,8 +682,14 @@ proc test_enums {} { 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" } } |