> -----Original Message-----
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 19, 2001 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [GUMP] Test Failure - Ant
>
>
> I can partly reproduce this problem on my machine - the test passes or
> fails randomly.
>
> Increasing the TIME_OUT like Stephane suggested helps, but doesn't
> really solve the problem that we don't have control over the time a
> spawned process takes to be started and terminated.
I don't see an easy solution for this. The 'dirty' workaround I'm thinking of would be to change the executed process (the inner class) to print its status, something like
System.out.println("Start");
Thread.sleep(timeout);
System.out.println("Stop");
then, a stream handler for the process would notify the test once it reads the "Start" and "Stop" 'events'.
A bit complicated. What do you think ?
--
St�phane Bailliez
Software Engineer, Paris - France
iMediation - http://www.imediation.com
Disclaimer: All the opinions expressed above are mine and not those from my company.
