I'm getting exactly the same test failures in libapreq2 as reported
by Arshavir Grigorian on 4th Aug 2006, on a different platform 
(Solaris v Linux, gcc 3.4 v 4.0), same Apache (2.2.3).

To recap, the failures are all in glue/perl/t/apreq/cookie.t:
t/apreq/cookie.......ok 6/13# Failed test 7 in t/apreq/cookie.t at line 70   
t/apreq/cookie.......ok 9/13# Failed test 10 in t/apreq/cookie.t at line 110 
t/apreq/cookie.......NOK 10# Failed test 11 in t/apreq/cookie.t at line 129  
t/apreq/cookie.......NOK 11# Failed test 12 in t/apreq/cookie.t at line 148  
t/apreq/cookie.......FAILED tests 7, 10-12                                   
        Failed 4/13 tests, 69.23% okay

The verbose output is also exactly as reported by Arsh, ie:
# testing : encoded value with space
# expected: okie dokie
# received: encoded
# Failed test 7 in t/apreq/cookie.t at line 70
...
# testing : cookies
# expected: one="1"; Version=1
# received: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
# <html><head>
# <title>500 Internal Server Error</title>
# Failed test 10 in t/apreq/cookie.t at line 110
# </head><body>
# <h1>Internal Server Error</h1>
# <p>The server encountered an internal error or
# misconfiguration and was unable to complete
# your request.</p>
# <p>Please contact the server administrator,
#  [EMAIL PROTECTED] and inform them of the time the error occurred,
# and anything you might have done that may have
# caused the error.</p>
# Failed test 11 in t/apreq/cookie.t at line 129
# <p>More information about this error may be available
# in the server error log.</p>
# </body></html>
not ok 10
# testing : cookies
# expected: two="2"; Version=1 two="22"; Version=1
# received: two="22"; Version=1
not ok 11
# testing : cookies
# expected: one two three two
# received: two
# Failed test 12 in t/apreq/cookie.t at line 148
not ok 12

Philip M. Gollucci then replied:
> This stems from the error you see in the error log.

[ ie [Fri Aug 25 22:51:21 2006] [error] [client 127.0.0.1] Can't call
  method "as_string" on an undefined value at
  .../libapreq2-2.08/glue/perl/t/response/TestApReq/cookie.pm line 26.\n 
]

> Looks like something in XS creation of the
> ARP::Cookie::JAR didn't work out happily. I don't know
> how much luck I'll have in debugging this as I don't
> have an environment to recreate it.
>
> Can you run:
> cd module ; ./t/TEST t/cookie.t -verbose
>
> That should hit the C code without any of the XS glue
> and at least isolate the 
> realm to look in.

I've tried this; it says: "all skipped: no reason given"

All the other tests succeed or are skipped.

My platform is different from Arsh's:
OS: Solaris 9
Arch: sun4u sparc
gcc: 3.4.2
perl: 5.8.5
Apache: 2.2.3
modperl: 2.0.2

PMG said (in relation to other tests being skipped, and again I am 
seeing the same pattern of skips): 
> Can you figure out why this test is being skipped ? 
> Look at the 'plan => foo;' line"

The plan lines say things like
plan tests => 4, have_lwp;
so does that mean they being skipped because I don't have LWP installed?

I then installed LWP, rebuilt and re-ran the libapreq2 tests.
This time they all passed; only the t/cgi, t/apreq/cgi continue
to be skipped but the above errors have all gone. So it seems like
there must be an implicit dependency on LWP (or one of its prereqs
that I also had to install). 

Ben

Reply via email to