xslate / p5-Text-Xslate

Scalable template engine for Perl5
https://metacpan.org/release/Text-Xslate
Other
121 stars 47 forks source link

Tests not passing on MSWIN #120

Closed zdm closed 10 years ago

zdm commented 10 years ago

Environment: windows 8.1 x64 strawberry perl 5.18.2.2 x64 mingw-builds x64 4.9.0

Partial log:

...
t/900_bugs/037_text_str_key.t ................... ok
t/900_bugs/038_conbine_flaged_utf8_and_other.t .. ok
t/900_bugs/039_issue96.t ........................ ok
t/900_bugs/040_issue95.t ........................ ok
t/900_bugs/041_cachedir_other_process.t ......... Dubious, test returned 5 (wstat 1280, 0x500)
All 3 subtests passed
t/900_bugs/042_perl59_issue.t ................... Text::Xslate: Iterating data must be an ARRAY reference, not 3 (<string>:2) at t/900_bugs/042_perl59_issue
.t line 13.
----------------------------------------------------------------------------
: '/' ~ uri('a')
: for 3 -> $n { }
----------------------------------------------------------------------------
t/900_bugs/042_perl59_issue.t ................... ok
t/900_bugs/043_issue107.t ....................... ok
t/900_bugs/044_empty_result.t ................... ok

Test Summary Report
-------------------
t/900_bugs/041_cachedir_other_process.t       (Wstat: 1280 Tests: 3 Failed: 0)
  Non-zero exit status: 5
Files=186, Tests=2781, 65 wallclock secs ( 0.75 usr +  0.27 sys =  1.02 CPU)
Result: FAIL
Failed 1/186 test programs. 0/2781 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
FAIL
! Installing Text::Xslate failed. See D:\tmp\.cpanm\work\1398396016.3028\build.log for details. Retry with --force to force install it.
syohex commented 10 years ago

I confirmed t/900_bugs/041_cachedir_other_process.t is passed but perl is crached after test. Is this Windows fork issue ?

$ perl -Mblib t/900_bugs/041_cachedir_other_process.t
ok 1 - cache directory does not exists
# waiting if(not -e $cachedir) {
# mkpath on child process
ok 2 - cache directory exists
1..2
Free to wrong pool 11fa778 not 3f6d48.
syohex commented 10 years ago

@zdm I suppose this is fork emulation issue of Perl, not Text::Xslate and there are no problems if you use Text::Xslate without fork on Windows system.

zdm commented 10 years ago

Maybe necessary to make this test conditional under mswin?

On 26.04.2014 16:34, Syohei YOSHIDA wrote:

@zdm https://github.com/zdm I suppose this is |fork| emulation issue of Perl, not |Text::Xslate| and there are no problems if you use |Text::Xslate| without |fork| on Windows system.

— Reply to this email directly or view it on GitHub https://github.com/xslate/p5-Text-Xslate/issues/120#issuecomment-41468815.

syohex commented 10 years ago

We skip that test under Windows.

syohex commented 10 years ago

http://matrix.cpantesters.org/?dist=Text-Xslate+3.2.4

Another test(t/010_internals/028_taint.t) is failed on Perl 5.19.11.

gfx commented 10 years ago

:(