Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-TT CPAN distribution.

Report information
The Basics
Id: 34555
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-TT

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.04
Fixed in: (no value)



Subject: 09_precompile_dir.t under win32
t\09_precompile_dir...... # Failed test 'file is cached' # at t\09_precompile_dir.t line 31. # got: 'C:\cpan\14\CGI-Application-Plugin-TT-1.04\t\include1\TestAppIncludePath/test_mode.tmpl' # expected: 'C:\cpan\14\CGI-Application-Plugin-TT-1.04\t\include1\TestAppIncludePath\test_mode.tmpl' # Failed test 'file is cached' # at t\09_precompile_dir.t line 31. # got: 'C:\cpan\14\CGI-Application-Plugin-TT-1.04\t\include1\TestAppIncludePath/test_mode.tmpl' # expected: 'C:\cpan\14\CGI-Application-Plugin-TT-1.04\t\include1\TestAppIncludePath\test_mode.tmpl' # Failed test 'file is cached' # at t\09_precompile_dir.t line 31. # got: undef # expected: 'C:\cpan\14\CGI-Application-Plugin-TT-1.04\t\include1\TestAppIncludePath\test_mode.tmpl' # Looks like you failed 3 tests of 6. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/6 subtests -- Alexandr Ciornii, http://chorny.net
From: CHORNY [...] cpan.org
Show quoted text
> Failed 3/6 subtests
I have checked 3rd error, all 3 have same problem - different slashes. It means it is safe to skip tests. -- Alexandr Ciornii, http://chorny.net
Show quoted text
> Failed 3/6 subtests
And here is the patch. -- Alexandr Ciornii, http://chorny.net
--- 09_precompile_dir.t.dist Fri Apr 4 20:29:27 2008 +++ 09_precompile_dir.t Fri Apr 4 20:35:55 2008 @@ -11,7 +11,7 @@ test_success('tmpl'); test_success(qr/\.(tt|tmpl|html)$/); -test_success(sub { diag("$_[0] eq $file");$_[0] eq $file }); +test_success(sub { rel2abs($_[0]) eq $file }); test_failure('nottmpl'); test_failure(qr/\.(nottmpl)$/); @@ -29,7 +29,7 @@ # This is kinda dirty since we are peeking pretty far into TT's internals # but it doesn't expose this stuff externally is( - $tt->{SERVICE}->{CONTEXT}->{LOAD_TEMPLATES}->[0]->{HEAD}->[1], + rel2abs($tt->{SERVICE}->{CONTEXT}->{LOAD_TEMPLATES}->[0]->{HEAD}->[1]), $file, 'file is cached' );
This test failure has been fixed in v1.05