From 851c18e0e958846e5b10c2254c693418f5ca3f8b Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 24 Apr 2001 17:47:42 +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 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)" } } -- 2.30.2