[cgiapp] Test Failures with CGI::Application::Plugin::TT
Hello Cees, thanks for the new versions of your plugins. Everything looks fine with a tiny exception: t/09_precompile_dir..1/6 # Failed test 'file is cached' # at t/09_precompile_dir.t line 31. # got: 'C:\.cpan\build\CGI-Application-Plugin-TT- 1.04\t\include1\TestAppIncludePath/test_mode.tmpl' # expected: 'C:\.cpan\build\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\build\CGI-Application-Plugin-TT- 1.04\t\include1\TestAppIncludePath/test_mode.tmpl' # expected: 'C:\.cpan\build\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\build\CGI-Application-Plugin-TT- 1.04\t\include1\TestAppIncludePath\test_mode.tmpl' # Looks like you failed 3 tests of 6. t/09_precompile_dir.. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/6 subtests It looks as if the first two are harmless (just one slash/backslash mixed up) but the third error looks like something is really going wrong. As you can guess from the "C:\..." everything is under Windows 2000, Perl is a self-compiled 5.8.8 with VC6 from the official sources (not Activestate). Any ideas? -Michael # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp## #### ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ####
Re: [cgiapp] Test Failures with CGI::Application::Plugin::TT
Hi Michael, I knew about these problems already because of the amazing CPAN testers. However, I was waiting for someone to pipe up that might help me in solving the problems :) The first two problems look to be cosmetic issues in Template Toolkit (ie it is using the wrong path separator on windows). My guess is that this doesn't actually cause any problems, but we should be able to fix the test suite to account for it. Like you said, the third problem looks like it could be an issue (although it is only an issue with the new precompile feature, so upgrading on windows should still be safe if you avoid that new feature). I don't have a windows box to play with so there is not much I can do to fix this. I would appreciate if someone could take a few minutes to do some debugging. A patch would be greatly appreciated, and/or SVN access to my CAP::TT repo can be organized for anyone willing to put in a bit of time to fix this problem. Cheers, Cees On Wed, Mar 5, 2008 at 1:39 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote: > Hello Cees, > > thanks for the new versions of your plugins. Everything looks fine with > a tiny exception: > > t/09_precompile_dir..1/6 > # Failed test 'file is cached' > # at t/09_precompile_dir.t line 31. > # got: 'C:\.cpan\build\CGI-Application-Plugin-TT- > 1.04\t\include1\TestAppIncludePath/test_mode.tmpl' > # expected: 'C:\.cpan\build\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\build\CGI-Application-Plugin-TT- > 1.04\t\include1\TestAppIncludePath/test_mode.tmpl' > # expected: 'C:\.cpan\build\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\build\CGI-Application-Plugin-TT- > 1.04\t\include1\TestAppIncludePath\test_mode.tmpl' > # Looks like you failed 3 tests of 6. > t/09_precompile_dir.. Dubious, test returned 3 (wstat 768, 0x300) > Failed 3/6 subtests > > It looks as if the first two are harmless (just one slash/backslash > mixed up) but the third error looks like something is really going > wrong. > As you can guess from the "C:\..." everything is under Windows 2000, > Perl is a self-compiled 5.8.8 with VC6 from the official sources (not > Activestate). > > Any ideas? > -Michael > > > # CGI::Application community mailing list > #### > ## To unsubscribe, or change your message delivery options, ## > ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp## > #### > ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## > ## Wiki: http://cgiapp.erlbaum.net/ ## > #### > > > # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp## #### ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ####
Re: [cgiapp] Test Failures with CGI::Application::Plugin::TT
Hi Cees On Mon, 2008-03-10 at 11:36 +1100, Cees Hek wrote: > Hi Michael, > > I knew about these problems already because of the amazing CPAN > testers. However, I was waiting for someone to pipe up that might > help me in solving the problems :) > > The first two problems look to be cosmetic issues in Template Toolkit > (ie it is using the wrong path separator on windows). My guess is > that this doesn't actually cause any problems, but we should be able > to fix the test suite to account for it. It's a bug in Template. See line 213 of Template::Provider.pm, where a hard-coded '/' explains why that happens. I did not log a report on RT, but you can after cross-checking my claim :-)). > Like you said, the third problem looks like it could be an issue > (although it is only an issue with the new precompile feature, so > upgrading on windows should still be safe if you avoid that new > feature). I don't have a windows box to play with so there is not > much I can do to fix this. I would appreciate if someone could take a > few minutes to do some debugging. A patch would be greatly > appreciated, and/or SVN access to my CAP::TT repo can be organized for > anyone willing to put in a bit of time to fix this problem. If you put these lines in 09_precompile_dir.t just after line 33 you'll see there is no key 'HEAD' in the hash. print "SERVICE:$$tt{SERVICE}. \n"; print "CONTEXT:$$tt{SERVICE}{CONTEXT}. \n"; print "LOAD_TEMPLATES: $$tt{SERVICE}{CONTEXT}{LOAD_TEMPLATES}. \n"; print "[0]:$$tt{SERVICE}{CONTEXT}{LOAD_TEMPLATES}[0]. \n"; print "HEAD: $$tt{SERVICE}{CONTEXT}{LOAD_TEMPLATES}[0]{HEAD}. \n"; print "KEYS: \n", map{"$_ => $$tt{SERVICE}{CONTEXT}{LOAD_TEMPLATES}[0]{$_}. \n"} sort keys %{$$tt{SERVICE}{CONTEXT}{LOAD_TEMPLATES}[0]}; Output: C:\perl.modules\CGI-Application-Plugin-TT-1.04>perl -Ilib t \09_precompile_dir.t 1..6 tt_dir: t\include1\TestAppIncludePath. file: C:\perl.modules\CGI-Application-Plugin-TT-1.04\t\include1 \TestAppIncludePath\test_mode.tmpl. SERVICE:Template::Service=HASH(0xc4609c). CONTEXT:Template::Context=HASH(0xc71344). LOAD_TEMPLATES: ARRAY(0xc716e4). [0]:Template::Provider=HASH(0xc715a4). HEAD: . KEYS: => . 0 => . ABSOLUTE => 1. COMPILE_DIR => . COMPILE_EXT => . DEBUG => 0. DEFAULT => . DELIMITER => :(?!\/). DOCUMENT => Template::Document. ENCODING => . INCLUDE_PATH => ARRAY(0xc71544). LOOKUP => HASH(0xc71534). NOTFOUND => HASH(0xc71564). PARAMS => HASH(0xc45cbc). PARSER => . RELATIVE => 0. SIZE => . SLOTS => 0. STAT_TTL => 1. TOLERANT => 0. UNICODE => 1. _ERROR => . not ok 1 - file is cached # Failed test 'file is cached' # at t\09_precompile_dir.t line 41. # got: undef # expected: 'C:\perl.modules\CGI-Application-Plugin-TT-1.04\t \include1\TestAppIncludePath\test_mode.tmpl' # Looks like you planned 6 tests but only ran 1. # Looks like you failed 1 test of 1 run. HTH. -- Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp## #### ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ####
Re: [cgiapp] Test Failures with CGI::Application::Plugin::TT
Hi Ron > It's a bug in Template. > > See line 213 of Template::Provider.pm, where a hard-coded '/' explains > why that happens. I did not log a report on RT, but you can after > cross-checking my claim :-)). Oops. Patching Template::Provider by replacing '/' with '\\' did not fix those 2 errors. Oh, well. I still assume the Template code has a bug in it at that point. -- Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp## #### ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ####
Re: [cgiapp] Test Failures with CGI::Application::Plugin::TT
Hi Cees, > feature). I don't have a windows box to play with so there is not > much I can do to fix this. I would appreciate if someone could take a > few minutes to do some debugging. A patch would be greatly > appreciated, and/or SVN access to my CAP::TT repo can be organized for > anyone willing to put in a bit of time to fix this problem. I am willing to do whatever debugging seems helpful. Besides what Ron already tried, do you have any idea where I could look? I won't be able to get at it before the weekend but I will definitely do what I can to fix this. CAP, TT and CAP::TT with them are the heart of most of my applications so I am very interested to get the current version without a "force install". -Michael # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp## #### ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ####
Re: [cgiapp] Test Failures with CGI::Application::Plugin::TT
Hi Cees Is this V 1.04 of CGI::Application::Plugin::TT? I just re-ran the tests and (shock, horror :-) they all worked: [EMAIL PROTECTED]:~/perl.modules/CGI-Application-Plugin-TT-1.04$ perl Build test t/01_basic...ok t/02_error...ok t/03_tname...ok t/04_singleton...ok t/05_include_pathok t/06_callbackok t/07_devpopupskipped: CGI::Application::Plugin::DevPopup required for these tests t/08_load_tmpl...ok t/09_precompile_dir..ok t/98_pod.ok t/99_pod_coverageok All tests successful. Files=11, Tests=60, 2 wallclock secs ( 0.10 usr 0.03 sys + 1.71 cusr 0.24 csys = 2.08 CPU) Result: PASS Anything changed that you know of? I'm using Template::Provider with the original line 213: $path = "$dir/$name"; since it may that he stores all template info with Unix paths in the cache. Nevertheless, I've logged a ticket with RT: 34489. -- Ron Savage [EMAIL PROTECTED] http://savage.net.au/index.html # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp## #### ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ####