This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] GDB/testsuite: Avoid timeout lowering
- From: Yao Qi <yao at codesourcery dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>, <gdb-patches at sourceware dot org>
- Date: Fri, 25 Jul 2014 09:37:16 +0800
- Subject: Re: [PATCH 1/2] GDB/testsuite: Avoid timeout lowering
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 1 dot 10 dot 1407231515400 dot 16254 at tp dot orcam dot me dot 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 (éå)