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: testsuite: Of all the timeouts provided always select the largest


On Tue, 26 Feb 2008, Jim Blandy wrote:

> I've often thought that what would be coolest would be for gdb_expect
> to accept a factor to be applied to the ambient timeout, rather than a
> new absolute number of seconds.  After all, the only thing a specific
> use of gdb_expect knows is that the response it's waiting for will
> take longer (or shorter?) than usual to arrive; it doesn't know
> anything about the absolute performance of the system under test.

 All the callers would have to be updated and unfortunately the dependency 
may not necessarily be linear.  For example for a fast target accessed 
through a slow port the factor for transferring data through, such as 
downloading a program image, would have to be higher than for a slow 
target accessed through a fast port.  Contrariwise the factor applied to 
actions involving execution on the respective systems.  In general I do 
agree it is a good idea, but that is a lot of work that best be well 
thought before commencing.

  Maciej


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