2003-09-07 Michael Chastain <mec@shout.net>
* gdb.cp/classes.exp: Accommodate both 'syntax error' and 'parse error'.
This commit is contained in:
parent
6e1ccdbeda
commit
d8a2d9e7ba
2 changed files with 13 additions and 2 deletions
|
@ -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>
|
2003-09-07 Mark Kettenis <m.kettenis@osp.nl>
|
||||||
|
|
||||||
* gdb.arch/i386-prologue.exp: Add checks for saved registers.
|
* gdb.arch/i386-prologue.exp: Add checks for saved registers.
|
||||||
|
|
|
@ -682,8 +682,14 @@ proc test_enums {} {
|
||||||
send_gdb "print (ClassWithEnum::PrivEnum) 42\n"
|
send_gdb "print (ClassWithEnum::PrivEnum) 42\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "\\$\[0-9\]* = yellow.*$gdb_prompt $" { pass "print (ClassWithEnum::PrivEnum) 42" }
|
-re "\\$\[0-9\]* = yellow.*$gdb_prompt $" { pass "print (ClassWithEnum::PrivEnum) 42" }
|
||||||
-re "A parse error in expression, near `42'.\r\n$gdb_prompt $"
|
-re "A parse error in expression, near `42'.\r\n$gdb_prompt $" {
|
||||||
{ kfail "gdb/826" "print (ClassWithEnum::PrivEnum) 42" }
|
# 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" }
|
-re "$gdb_prompt $" { fail "print (ClassWithEnum::PrivEnum) 42" }
|
||||||
timeout { fail "(timeout) print (ClassWithEnum::PrivEnum) 42" }
|
timeout { fail "(timeout) print (ClassWithEnum::PrivEnum) 42" }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue