aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/templates.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.c++/templates.exp')
-rw-r--r--gdb/testsuite/gdb.c++/templates.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.c++/templates.exp b/gdb/testsuite/gdb.c++/templates.exp
index 8a8e904..3166e5a 100644
--- a/gdb/testsuite/gdb.c++/templates.exp
+++ b/gdb/testsuite/gdb.c++/templates.exp
@@ -114,7 +114,11 @@ proc test_template_breakpoints {} {
"canceled" \
"constructor breakpoint"
}
- -re ".*\n> $" { fail "constructor breakpoint" }
+ -re ".*\n> $" {
+ gdb_test "0" \
+ "nonsense intended to insure that this test fails" \
+ "constructor breakpoint (bad menu choices)"
+ }
-re ".*$gdb_prompt $" { fail "constructor breakpoint" }
default { fail "constructor breakpoint (timeout)" }
}