This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] GDB/testsuite: Avoid timeout lowering


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]