Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure t/010_internals/008_files.t #75

Open
racke opened this issue Feb 19, 2013 · 3 comments
Open

Test failure t/010_internals/008_files.t #75

racke opened this issue Feb 19, 2013 · 3 comments

Comments

@racke
Copy link

racke commented Feb 19, 2013

This test fails on Perl 5.16.2 while it works on Perl 5.14.2:

#   Failed test 'auto reload'
#   at t/010_internals/008_files.t line 79.
#          got: 'Hello, Perl world!
# '
#     expected: 'Hi, Perl.
# '

#   Failed test 'auto reload'
#   at t/010_internals/008_files.t line 79.
#          got: 'Hello, Perl world!
# '
#     expected: 'Hi, Perl.
# '
# Looks like you failed 2 tests of 67.
t/010_internals/008_files.t ................... 

Regards
Racke

@gfx
Copy link
Member

gfx commented Feb 22, 2013

Thanks for reporting it.

I could not reproduce this issue, however. Can you show perl -V on your env, please?

@gfx
Copy link
Member

gfx commented Jun 10, 2013

Also reported by @mackee https://gist.github.com/mackee/5691171

@ppisar
Copy link

ppisar commented Jun 17, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants