bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make-3.82 testcases fail *sometimes*


From: Paul Smith
Subject: Re: make-3.82 testcases fail *sometimes*
Date: Tue, 31 Aug 2010 13:24:45 -0400

On Tue, 2010-08-31 at 20:15 +0300, Eli Zaretskii wrote:
> > From: Paul Smith <address@hidden>
> > Date: Tue, 31 Aug 2010 10:40:55 -0400
> > Cc: address@hidden
> > 
> > Right, I didn't mean flock() or something; I just meant test for
> > existence.  But, doing a loop waiting for a file to exist in a UNIX
> > shell vs. Windows command.com (for example) is not simple.
> 
> I don't see a problem: the test suite is written part in Perl and part
> in Bourne shell commands in the Makefile's generated by the tests.
> Both behave roughly the same on DOS/Windows as they do on Unix.
> There's no command.com anywhere in sight, not in the test suite,
> because the test suite cannot be run at all using the native
> DOS/Windows shells.

That's good to know.  Then, we can probably implement a straightforward
loop test using sh (while [ ! -f somefile ]; do sleep 1; done) and
assume it will work on Windows (at least as well as it works today).

Too bad GNU's version of sleep, that accepts fractional seconds, is not
portable :-).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]