diff options
author | Michael Chastain <mec@google.com> | 2003-09-08 02:00:11 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-09-08 02:00:11 +0000 |
commit | d8a2d9e7ba999f27a6116a72291a7e1603cd321d (patch) | |
tree | 8470a8752342a5ae810efe3b183f80caa0030cf4 /gdb/testsuite/gdb.cp/classes.exp | |
parent | 6e1ccdbeda83a21070a4a898a5875c9430843511 (diff) | |
download | gdb-d8a2d9e7ba999f27a6116a72291a7e1603cd321d.zip gdb-d8a2d9e7ba999f27a6116a72291a7e1603cd321d.tar.gz gdb-d8a2d9e7ba999f27a6116a72291a7e1603cd321d.tar.bz2 |
2003-09-07 Michael Chastain <mec@shout.net>
* gdb.cp/classes.exp: Accommodate both 'syntax error' and
'parse error'.
Diffstat (limited to 'gdb/testsuite/gdb.cp/classes.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/classes.exp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp index 3f398ac..60f5ab7 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" } } |