* gdb.c++/templates.exp: If we see the prompt for the overload
authorJim Blandy <jimb@codesourcery.com>
Tue, 24 Apr 2001 17:47:42 +0000 (17:47 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 24 Apr 2001 17:47:42 +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 69b29c3aaed401a9d9cf732d4c691e0906cf8bc5..0667682317123eef48636873b2d3ad9d5c6a3b80 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 37c67f3407947b1f397c44e7f598c94ae5c6938b..638743eca41c579a850c600a43085878d6e96503 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)" }
     }