2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp (test_template_breakpoints): If we get an overload menu, but it does not match what we expect, we still need to issue the "cancel" command.
This commit is contained in:
parent
3fe0dc10b4
commit
760f63305a
|
@ -36,6 +36,9 @@
|
||||||
|
|
||||||
2001-11-07 Michael Snyder <msnyder@redhat.com>
|
2001-11-07 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
|
* gdb.c++/templates.exp (test_template_breakpoints):
|
||||||
|
If we get an overload menu, but it does not match what
|
||||||
|
we expect, we still need to issue the "cancel" command.
|
||||||
* gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
|
* gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
|
||||||
making the whitespace optional. Argument for "new" may be
|
making the whitespace optional. Argument for "new" may be
|
||||||
"unsigned" as well as "unsigned int/long".
|
"unsigned" as well as "unsigned int/long".
|
||||||
|
|
|
@ -114,7 +114,11 @@ proc test_template_breakpoints {} {
|
||||||
"canceled" \
|
"canceled" \
|
||||||
"constructor breakpoint"
|
"constructor breakpoint"
|
||||||
}
|
}
|
||||||
-re ".*\n> $" { fail "constructor breakpoint" }
|
-re ".*\n> $" {
|
||||||
|
gdb_test "0" \
|
||||||
|
"nonsense intended to insure that this test fails" \
|
||||||
|
"constructor breakpoint (bad menu choices)"
|
||||||
|
}
|
||||||
-re ".*$gdb_prompt $" { fail "constructor breakpoint" }
|
-re ".*$gdb_prompt $" { fail "constructor breakpoint" }
|
||||||
default { fail "constructor breakpoint (timeout)" }
|
default { fail "constructor breakpoint (timeout)" }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue