Testsuite cleanup in gdb.c++/annota2.exp
Elena Zannoni
ezannoni@cygnus.com
Sat Apr 1 00:00:00 GMT 2000
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)" }
> }
More information about the Gdb-patches
mailing list