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: Jim Kingdon <kingdon at redhat dot com>
- Subject: Testsuite cleanup in gdb.c++/annota2.exp
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Tue, 4 Jan 2000 14:23:05 -0500 (EST)
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <200001020459.XAA30900@devserv.devel.redhat.com>
Jim Kingdon writes:
Thanks. Patch committed.
Elena
> 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)" }
> }