This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: Fix multi-fork.exp for good
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jim Blandy <jimb at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 29 Dec 2007 23:32:01 -0500
- Subject: Re: RFA: Fix multi-fork.exp for good
- References: <m3bq89vepx.fsf@codesourcery.com>
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.
> + # 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!
--
Daniel Jacobowitz
CodeSourcery