This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: fix race in py-explore.exp
- From: Siva Chandra <sivachandra at google dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 20 Jan 2013 02:43:25 -0800
- Subject: Re: RFC: fix race in py-explore.exp
- References: <87vcazo9ed.fsf@fleche.redhat.com>
On Mon, Jan 14, 2013 at 11:24 AM, Tom Tromey <tromey@redhat.com> wrote:
> I had py-explore.exp spuriously fail on me.
>
> I think it needs to expect the prompt in this spot.
> I'm not totally sure about this, comments requested.
How do we reproduce this failure? I am not seeing this on my side with head.
> Built and regtested on x86-64 Fedora 16.
>
> Tom
>
> * gdb.python/py-explore.exp: Expect the gdb prompt.
> ---
> gdb/testsuite/gdb.python/py-explore.exp | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp
> index 0fb67d3..bc4446d 100644
> --- a/gdb/testsuite/gdb.python/py-explore.exp
> +++ b/gdb/testsuite/gdb.python/py-explore.exp
> @@ -96,7 +96,7 @@ gdb_test_multiple "explore ss_ptr" "" {
> -re "[pointer_description {ss_ptr} $SS].*" {
> pass "explore ss_ptr"
> gdb_test_multiple "y" "explore_as_single_value_pointer" {
> - -re "$SS_fields" {
> + -re "$SS_fields.*$gdb_prompt" {
> pass "explore ss_ptr as single value pointer"
> }
> }
> --
> 1.7.7.6
>