This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Testsuite cleanup in gdb.c++/annota2.exp
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: Testsuite cleanup in gdb.c++/annota2.exp
- From: Jim Kingdon <kingdon at redhat dot com>
- Date: Sat, 1 Jan 2000 23:59:54 -0500
In the process of investigating some other failures, I found some
fragile code in gdb.c++/annota2.exp (I can explain at greater length
if the problem I'm fixing isn't obvious):
2000-01-01 Jim Kingdon <http://developer.redhat.com/>
* gdb.c++/annota2.exp: Fix "delete bps" test to wait for the
prompt (cleanup rather than necessity, but still might keep output
from spilling to next test).
Index: gdb.c++/annota2.exp
===================================================================
RCS file: /cvs/gdb/gdb/gdb/testsuite/gdb.c++/annota2.exp,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 annota2.exp
--- annota2.exp 1999/09/09 00:00:26 1.1.1.3
+++ annota2.exp 2000/01/02 04:45:30
@@ -139,7 +139,7 @@
-re ".*Delete all breakpoints. \\(y or n\\) \r\n\032\032query.*$" {
send_gdb "y\n"
gdb_expect {
- -re " " { pass "delete bps" }
+ -re " .*$gdb_prompt$" { pass "delete bps" }
-re ".*$gdb_prompt$" { fail "delete bps" }
timeout { fail "delete bps (timeout)" }
}