* gdb.c++/templates.exp: If we see the prompt for the overload

list, but we haven't recognized any of the longer patterns,
arrange for this test to fail, not hang.
This commit is contained in:
Jim Blandy 2001-04-24 17:47:42 +00:00
parent a966fde5a0
commit 851c18e0e9
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2001-04-24 Jim Blandy <jimb@redhat.com>
* gdb.c++/templates.exp: If we see the prompt for the overload
list, but we haven't recognized any of the longer patterns,
arrange for this test to fail, not hang.
* gdb.c++/classes.exp (ptype class A): Tolerate whitespace
variations.

View File

@ -114,6 +114,7 @@ proc test_template_breakpoints {} {
"canceled" \
"constructor breakpoint"
}
-re ".*\n> $" { fail "constructor breakpoint" }
-re ".*$gdb_prompt $" { fail "constructor breakpoint" }
default { fail "constructor breakpoint (timeout)" }
}