From: jimb Date: Tue, 24 Apr 2001 17:47:41 +0000 (+0000) Subject: * gdb.c++/templates.exp: If we see the prompt for the overload X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6cd38f3b891fa13bb8bd5aef6898cab736beb9bc;p=pf3gnuchains%2Fpf3gnuchains3x.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 69b29c3aae..0667682317 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 37c67f3407..638743eca4 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)" } }