Open racke opened 11 years ago
Thanks for reporting it.
I could not reproduce this issue, however. Can you show perl -V
on your env, please?
Also reported by @mackee https://gist.github.com/mackee/5691171
I can reproduce it with perl 5.18.2 and current Text-Xslate's master HEAD. This happens if the host is heavily loaded and it's a race in the test.
If you comment the "utime $^T+10, $^T+10, $x;" line out which does precede the failing test, the failure will be inevitable.
I don't know why the modification time is important, but obviously the 10-seconds-after-test-start is a magic constant. If the tested code does not advance to some location in the time, the failure will occur. There should be better synchronization than magic time constants.
This test fails on Perl 5.16.2 while it works on Perl 5.14.2:
Regards Racke