aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-04-24 17:47:42 +0000
committerJim Blandy <jimb@codesourcery.com>2001-04-24 17:47:42 +0000
commit851c18e0e958846e5b10c2254c693418f5ca3f8b (patch)
treeafe803c6ec0e40b0c7fd72a3e1c99f2697684f7d
parenta966fde5a0a00f6f85788f616f2f711db9dca0c6 (diff)
downloadgdb-851c18e0e958846e5b10c2254c693418f5ca3f8b.zip
gdb-851c18e0e958846e5b10c2254c693418f5ca3f8b.tar.gz
gdb-851c18e0e958846e5b10c2254c693418f5ca3f8b.tar.bz2
* 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.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.c++/templates.exp1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 69b29c3..0667682 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.c++/templates.exp b/gdb/testsuite/gdb.c++/templates.exp
index 37c67f3..638743e 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)" }
}