aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++
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 /gdb/testsuite/gdb.c++
parenta966fde5a0a00f6f85788f616f2f711db9dca0c6 (diff)
downloadbinutils-851c18e0e958846e5b10c2254c693418f5ca3f8b.zip
binutils-851c18e0e958846e5b10c2254c693418f5ca3f8b.tar.gz
binutils-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.
Diffstat (limited to 'gdb/testsuite/gdb.c++')
-rw-r--r--gdb/testsuite/gdb.c++/templates.exp1
1 files changed, 1 insertions, 0 deletions
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)" }
}