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: [RFA/testsuite] Reset the timeout duration at the start of each testcase.


On Thu, Feb 04, 2010 at 09:42:54PM +0400, Joel Brobecker wrote:
> Just something that occured to me: What if I changed the implementation
> to just store $timeout at the time gdb.exp is evaluated. From the user's
> perspective, the difference is that he would need to override the value
> of $timeout, which is an already-known variable, instead of setting the
> value of the new default_test_timeout variable.  Would that be ugly?
> 
> This isn't tested (it's getting late here), but this is what I have
> in mind:

Right, I think this would work fine and I like it.

Here's another trick that will make it less confusing about
initialization order.  How about we info exists to set
default_test_timeout from gdb_init, if we haven't yet?

I know I've worked with board files that loaded gdb.exp themselves.

-- 
Daniel Jacobowitz
CodeSourcery


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