On Mon, 15 Dec 2003, Steve Hay wrote:

> I just retested with the cvs version that I grabbed last Friday and
> found that it worked, but only once: thereafter it fails again!
>
> More testing shows that if I "touch" the file that it is stat()'ing
> (t/htdocs/index.html) to give it file times of >1 hour ago then the
> offending test works, but any repeat tests immediately after that fail
> again:
>
> C:\Temp\modperl-2.0>\cygwin\bin\touch 12151545 t/htdocs/index.html
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [OK]
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [Fails test 10]
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [Fails test 10]
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [Fails test 10]
> ...
> C:\Temp\modperl-2.0>\cygwin\bin\touch 12151545 t/htdocs/index.html
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [OK]
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [Fails test 10]
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [Fails test 10]
> C:\Temp\modperl-2.0>perl t/TEST -verbose apr/finfo.t
> [Fails test 10]
> ...
>
> Bizarre!  Do you observe this behaviour?  If not, then I'll give
> ActivePerl 807 a try myself.

No, I don't see this, even running 3 tests in a row like
this, and even if I edit the file so as to give it a new
modification time ... You're right - that's very strange!

After you run the test, does the file modification time of
index.html change?

> I get the same thing happening with the latest cvs which I've just
> grabbed (with your patch for modperl_mgv.c).
>
> An obvious "fix" is to utime() the file in question to set the file
> times to >1 hour ago:

I've heard, but I forget in what context, problems with file
times less than 1 hour on Win32, so this does ring a bell ..

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to