I found out those failing tests were due to a little omission in 'new' method:
diff WithApacheSession.pm.original blib/lib/MasonX/Request/WithApacheSession.pm
77c77
<     return if $self->is_subrequest;
---
>     return $self if $self->is_subrequest;

Cheers.
  --Alberto


Da: [EMAIL PROTECTED] per conto di Alberto Quario
Inviato: lun 03/04/2006 23.40
A: [email protected]
Oggetto: [Mason] Trouble installing MasonX::Request::WithApacheSession

Hi folks,
 
I'm having some problems installing MasonX::Request::WithApacheSession 0.30.
All "subrequest" tests fail, as you can see...
 
realbot:.cpan/build/MasonX-Request-WithApacheSession-0.30> ./Build test
t/01-basic....NOK 11
#   Failed test 'subrequest1'
#   in /home/realbot/local/perl/lib/site_perl/5.8.8/HTML/Mason/Tests.pm at line 559.
# Looks like you failed 1 test of 12.
t/01-basic....dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 11
        Failed 1/12 tests, 91.67% okay
t/03-multi....NOK 4
#   Failed test 'subrequest1'
#   in /home/realbot/local/perl/lib/site_perl/5.8.8/HTML/Mason/Tests.pm at line 559.
# Looks like you failed 1 test of 7.
t/03-multi....dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 4
        Failed 1/7 tests, 85.71% okay
t/99-pod......ok
        1/1 skipped: File::Find::Rule not installed
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/01-basic.t    1   256    12    1   8.33%  11
t/03-multi.t    1   256     7    1  14.29%  4
1 subtest skipped.
Failed 2/3 test scripts, 33.33% okay. 2/20 subtests failed, 90.00% okay.
realbot:.cpan/build/MasonX-Request-WithApacheSession-0.30> perl -I blib/lib t/01-basic.t
1..12
ok 1 - can_session
ok 2 - isa_session
ok 3 - session_store
ok 4 - session_read
ok 5 - session_allow_invalid
ok 6 - session_do_not_allow_invalid
ok 7 - session_always_write_on_1
ok 8 - session_always_write_2
ok 9 - session_always_write_off_1
ok 10 - session_always_write_off_2
not ok 11 - subrequest1
#   Failed test 'subrequest1'
#   in /home/realbot/local/perl/lib/site_perl/5.8.8/HTML/Mason/Tests.pm at line 559.
ok 12 - delete_session
# Looks like you failed 1 test of 12.
My environment is:
OpenBSD 3.3 i386
perl v5.8.8
HTML::Mason 1.32
 
Any hints? Can I force installation?
 
Thanks.
  --Alberto

Reply via email to