On Tue, 2010-08-31 at 20:15 +0300, Eli Zaretskii wrote:
> > From: Paul Smith <psm...@gnu.org>
> > Date: Tue, 31 Aug 2010 10:40:55 -0400
> > Cc: bug-make@gnu.org
> > 
> > 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 :-).


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to