Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 Joel Brobecker <brobecker@adacore.com>
Subject: Re: [RFA] gdb.threads/*.exp: send_gdb vs. gdb_test
Date: Wed, 02 Jun 2010 19:59:00 -0000	[thread overview]
Message-ID: <4C06B80C.1080700@vmware.com> (raw)
In-Reply-To: <201006012348.51797.pedro@codesourcery.com>

Pedro Alves wrote:
> On Tuesday 01 June 2010 23:23:20, Michael Snyder wrote:
>>>> -    send_gdb "continue\n"
>>>> -    gdb_expect {
>>>> -    -re "Continuing.*common_routine.*at.*$srcfile.*$gdb_prompt $" {}
>>>> +    gdb_test_multiple "continue" "continue until common routine run 15 times" {
>>>> +    -re "Continuing.*common_routine.*at.*$srcfile.*$gdb_prompt $" {
>>>> +    }
>>>>      default {
>>>>          fail "continue until common routine run 15 times"
>>>>          return 0
>>> Shouldn't we delete the "default" & "timeout" sections in this case?
>> I left them in because they do a "return", which wouldn't happen
>> if they were removed.
> 
> Then, as I explained in other reviews, you should really move the
> return statement outside of gdb_test_multiple, because as is, the
> "fail"s caught by gdb_test_multiple's internals won't cause a return.
> 

OK, fixed and committed.


      reply	other threads:[~2010-06-02 19:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27  1:24 Michael Snyder
2010-06-01 21:48 ` Joel Brobecker
2010-06-01 22:23   ` Michael Snyder
2010-06-01 22:49     ` Pedro Alves
2010-06-02 19:59       ` Michael Snyder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C06B80C.1080700@vmware.com \
    --to=msnyder@vmware.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox