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: Fix multi-fork.exp for good


Daniel Jacobowitz <drow at false.org> writes:
> On Sat, Dec 29, 2007 at 04:59:38AM -0800, Jim Blandy wrote:
>> Or at least, I hope so.  I was getting occasional timeouts from
>> interactions after the follow-parent tests on loaded machines.  Set a
>> few windows doing 'while true; do :; done' and give it a try.
>
> Thanks.  I saw this behavior too; your patch looks good to me.

Committed --- thanks.

>> +    # We don't know what order the interesting things will arrive in.
>> +    # Using a pattern of the form 'x|y|z' instead of -re x ... -re y
>> +    # ... -re z ensures that expect always chooses the match that
>> +    # occurs leftmost in the input, and not the pattern appearing
>> +    # first in the script that occurs anywhere in the input, so that
>> +    # we don't skip anything.
>
> Cute trick!

:) I had something much more elaborate and inflexible, and was writing
the ChangeLog entry to post it, and then thought, "Is it really true
that there's no way to get the leftmost match?"


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