Re: [cgiapp] Test Failures with CGI::Application::Plugin::TT

2008-03-27 Thread Ron Savage
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/ ##
####




Re: [cgiapp] Test Failures with CGI::Application::Plugin::TT

2008-03-11 Thread Michael Lackhoff
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

2008-03-10 Thread Ron Savage
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

2008-03-09 Thread Cees Hek
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/ ##
####