OSDN Git Service

* gdb.c++/templates.exp: If we see the prompt for the overload
authorjimb <jimb>
Tue, 24 Apr 2001 17:47:41 +0000 (17:47 +0000)
committerjimb <jimb>
Tue, 24 Apr 2001 17:47:41 +0000 (17:47 +0000)
list, but we haven't recognized any of the longer patterns,
arrange for this test to fail, not hang.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.c++/templates.exp

index 69b29c3..0667682 100644 (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.
 
index 37c67f3..638743e 100644 (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)" }
     }