Randy Kobes wrote: >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? > No (well, not unless I've changed it with touch or utime() ;)
> > > >>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 .. > There are definitely problems with stat()'ing files modified in the "opposite" Daylight Saving Time "season" (Daylight Time vs Standard Time), but this file is modified today so is obviously the same season, and I'm in GMT Standard Time too, so there isn't even any Time Zone involved. The only other problem that I'm aware of is that the granularity of file times in FAT file systems is 2 seconds, but, again, that's irrelevant here as I'm on NTFS. Looks like I'll have to give ActivePerl 807 a whirl tomorrow, then. - Steve ------------------------------------------------ Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
