From 6cd38f3b891fa13bb8bd5aef6898cab736beb9bc Mon Sep 17 00:00:00 2001 From: jimb Date: Tue, 24 Apr 2001 17:47:41 +0000 Subject: [PATCH] * 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/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.c++/templates.exp | 1 + 2 files changed, 5 insertions(+) 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)" } } -- 2.11.0