Tests abort with "Cannot call 'match'" #20

Closed
pmichaud opened this Issue Mar 19, 2013 · 3 comments

Comments

Projects
None yet
3 participants
@pmichaud

LWP::Simple tests abort with "Cannot call 'match'; none of these signatures match" error. Results of "panda install LWP::Simple" follow:

==> Fetching LWP::Simple
==> Building LWP::Simple
Compiling lib/LWP/Simple.pm
==> Testing LWP::Simple
t/000-load-module.t ............. ok   
t/basic-auth.t .................. ok   
t/custom-headers-and-content.t .. Cannot call 'match'; none of these signatures match:
:(Cool:D : $target, *%adverbs)
  in method match at src/gen/CORE.setting:2394
  in block  at t/custom-headers-and-content.t:12

t/custom-headers-and-content.t .. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
t/get-binary-camelia.t .......... ok   
t/get-chunked-6guts.t ........... ok   
t/get-perl6-org.t ............... ok   
t/get-unsized.t ................. Cannot call 'match'; none of these signatures match:
:(Cool:D : $target, *%adverbs)
  in method match at src/gen/CORE.setting:2394
  in block  at t/get-unsized.t:10

t/get-unsized.t ................. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
t/get-w3-latin1-utf8.t .......... ok   
t/get-w3-redirect.t ............. ok   
t/getstore.t .................... ok   
t/parse-url.t ................... ok    
t/socket-sanity.t ............... ok   
t/stringify-headers.t ........... ok   

Test Summary Report
-------------------
t/custom-headers-and-content.t (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/get-unsized.t               (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
Files=13, Tests=54, 95 wallclock secs ( 0.12 usr  0.01 sys + 88.25 cusr  2.71 csys = 91.09 CPU)
Result: FAIL
test stage failed for LWP::Simple: Tests failed

Similar errors exist for LWP::Simple as it appears in the current Rakudo Star repository -- see rakudo/star#18 .

Pm

@dagurval

This comment has been minimized.

Show comment Hide comment
@dagurval

dagurval May 19, 2013

The test in custom-headers-and-content.t fails because the server returns a 500 error.

get-unsized.t fails because www.rosettacode.org has banned LWP::Simple and returns a 403.

 The owner of this website (www.rosettacode.org) has banned your access based on 
 your browser's signature (54ca3fde-cl-ua-22). (Ref. 1010)

The test in custom-headers-and-content.t fails because the server returns a 500 error.

get-unsized.t fails because www.rosettacode.org has banned LWP::Simple and returns a 403.

 The owner of this website (www.rosettacode.org) has banned your access based on 
 your browser's signature (54ca3fde-cl-ua-22). (Ref. 1010)
@pmichaud

This comment has been minimized.

Show comment Hide comment
@pmichaud

pmichaud May 19, 2013

On Sun, May 19, 2013 at 04:20:29AM -0700, Dagur wrote:

The test in custom-headers-and-content.t fails because the server
returns a 500 error.

get-unsized.t fails because www.rosettacode.org has banned LWP::Simple
and returns a 403.

The owner of this website (www.rosettacode.org) has banned
your access based on your browser's signature (54ca3fde-cl-ua-22).
(Ref. 1010)

Perhaps this should be testing against a Perl site (something like
perl6.org) instead of rosetta.org .

Pm

On Sun, May 19, 2013 at 04:20:29AM -0700, Dagur wrote:

The test in custom-headers-and-content.t fails because the server
returns a 500 error.

get-unsized.t fails because www.rosettacode.org has banned LWP::Simple
and returns a 403.

The owner of this website (www.rosettacode.org) has banned
your access based on your browser's signature (54ca3fde-cl-ua-22).
(Ref. 1010)

Perhaps this should be testing against a Perl site (something like
perl6.org) instead of rosetta.org .

Pm

@cosimo

This comment has been minimized.

Show comment Hide comment
@cosimo

cosimo Dec 1, 2014

Owner

I think this is now fixed. We don't fetch from rosettacode anymore, and as of today, we skip tests if there's no html returned.

Owner

cosimo commented Dec 1, 2014

I think this is now fixed. We don't fetch from rosettacode anymore, and as of today, we skip tests if there's no html returned.

@cosimo cosimo closed this Dec 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment