Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: "Maciej W. Rozycki" <macro@codesourcery.com>,
	<gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/2] GDB/testsuite: Avoid timeout lowering
Date: Fri, 25 Jul 2014 08:36:00 -0000	[thread overview]
Message-ID: <53D1B4CC.4010004@codesourcery.com> (raw)
In-Reply-To: <alpine.DEB.1.10.1407231515400.16254@tp.orcam.me.uk>

On 07/25/2014 06:38 AM, Maciej W. Rozycki wrote:
>  With the timeout selection code from gdb_test_multiple gone, gone is also 
> the most prominent use of this timeout argument, it's now used in a couple 
> of places only, mostly within this test framework library code itself for 
> preparatory commands or suchlike.  With this being the case this timeout 
> selection code can be simplified as follows:
> 
> 1. Among the three timeout variables, the highest is always chosen.  This 
>    is so that a test case doesn't inadvertently lower a high value timeout 
>    needed by slow target boards.  This is what all test cases use.
> 
> 2. Any timeout argument takes precedence.  This is for special cases such 
>    as within the framework library code, e.g. it doesn't make sense to 
>    send `set height 0' with a timeout of 7200 seconds.  This is a local 
>    command that does not interact with the target and setting a high 
>    timeout here only risks a test suite run taking ages if it goes astray 
>    for some reason.
> 
> 3. The fallback timeout of 60s remains.

Maciej,
IWBN to put the descriptions about timeout selection into the comments
of proc gdb_expect.

I don't see anything wrong in this patch.

-- 
Yao (齐尧)


  parent reply	other threads:[~2014-07-25  1:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24 22:39 Maciej W. Rozycki
2014-07-25  1:41 ` [PATCH 2/2] GDB/testsuite: Add/correct gdb.reverse timeout tweaks Maciej W. Rozycki
2014-07-29 12:53   ` Pedro Alves
2014-09-09 16:32     ` Maciej W. Rozycki
2014-07-25  8:36 ` Yao Qi [this message]
2014-07-29 12:35   ` [PATCH 1/2] GDB/testsuite: Avoid timeout lowering Pedro Alves
2014-09-09 15:56     ` Maciej W. Rozycki

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=53D1B4CC.4010004@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=macro@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