From: Jim Blandy Date: Tue, 24 Apr 2001 17:47:42 +0000 (+0000) Subject: * gdb.c++/templates.exp: If we see the prompt for the overload X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=851c18e0e958846e5b10c2254c693418f5ca3f8b;p=binutils-gdb.git * 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 69b29c3aaed..06676823171 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2001-04-24 Jim Blandy + * 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. diff --git a/gdb/testsuite/gdb.c++/templates.exp b/gdb/testsuite/gdb.c++/templates.exp index 37c67f34079..638743eca41 100644 --- a/gdb/testsuite/gdb.c++/templates.exp +++ b/gdb/testsuite/gdb.c++/templates.exp @@ -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)" } }