win32 stat mtime failures #820

rurban opened this Issue Aug 29, 2012 · 0 comments


None yet
1 participant

rurban commented Aug 29, 2012

The perl5 module Win32::UTCFileTime describes a msvcrt stat() problem with mtime.

I see various problems in the parrot testsuite:

  1. t/perl/Parrot_IO.t tests if our perl5 module Parrot::IO::File modified_since() works fine. It is used for pod caching.
    Since localtime and mtime might deviate with daylight savings, the test is unstable and fails for me.
    The test needs to be fixed to compare stat.mtime's instead.
  2. With t/perl/Parrot_IO.t fixed as described above to compare only stat mtime,
    a file change does not lead to updated mtimes.
  3. It is said that perl5 works only reliably with Win32::UTCFileTime being loaded by replacing CORE stat().
    t/dynpmc/os.t returns different values for the three stat times for perl5 and parrot.
    I see no improvement when using Win32::UTCFileTime or not.

rurban was assigned Aug 29, 2012

@rurban rurban pushed a commit that referenced this issue Aug 29, 2012

Reini Urban [GH #820] win32 stat() mtime problems
Try to use Win32::UTCFileTime, but it did not help.
Compare stat mtimes to each other, not against the system-time.
The tests still fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment