From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>,
"Maciej W. Rozycki" <macro@codesourcery.com>,
gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] GDB/testsuite: Avoid timeout lowering
Date: Tue, 29 Jul 2014 12:35:00 -0000 [thread overview]
Message-ID: <53D793C4.30200@redhat.com> (raw)
In-Reply-To: <53D1B4CC.4010004@codesourcery.com>
On 07/25/2014 02:37 AM, Yao Qi wrote:
> 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.
Indeed. It feels like a host vs target timeout concept. That is, we
can still have a slow remote host, but that's a different vector of
slow vs a slow target.
>>
>> 3. The fallback timeout of 60s remains.
>
> Maciej,
> IWBN to put the descriptions about timeout selection into the comments
> of proc gdb_expect.
Agreed. Or even somewhere more central, and have gdb_expect
gdb_test_multiple, etc. refer to that.
> I don't see anything wrong in this patch.
Me neither.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2014-07-29 12:30 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 ` [PATCH 1/2] GDB/testsuite: Avoid timeout lowering Yao Qi
2014-07-29 12:35 ` Pedro Alves [this message]
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=53D793C4.30200@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=macro@codesourcery.com \
--cc=yao@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