Re: RFA: Fix multi-fork.exp for good

Daniel Jacobowitz
2007-12-30T04:32:11Z

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