Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Errors building XML::LibXML (source code)

by tye (Sage)
on Feb 25, 2014 at 14:17 UTC ( [id://1076141]=note: print w/replies, xml ) Need Help??


in reply to Errors building XML::LibXML

You are aware that you have free access to all of the source code involved, right?

Pick one of the failing tests (like the first one) and run it outside of the "harness" that hides all of the details:

perl -Mblib t/02parse.­t 2>&1 | less

Then, if needed, look at the source code in t/02parse.t and figure out why the particular failing test cases are failing. Then, if needed, look at the source code of the module that gets executed for the test and figure out what is causing the failure. Then, if needed, post questions about what you find to try to solicit help diagnosing.

You can even combine the first 3 steps into one session by using the Perl debugger:

perl -d -Mblib t/02parse.t

Me looking at t/02parse.t trying to guess what might possibly cause 343 or its 531 subtests to fail sounds likely to be a particularly inefficient way to try to diagnose your problem.

- tye        

Replies are listed 'Best First'.
Re^2: Errors building XML::LibXML (source code)
by atreyu (Sexton) on Feb 25, 2014 at 15:30 UTC
    "You are aware that you have free access to all of the source code involved, right?"
    indeed, but alas, I am not a Perl Monk. I am more of a Perl Acolyte wannabe. I did try to run that very test manually, but could not make sense of the output. Here's a sample:
    perl -Mblib t/02parse.t 1..531 ok 1 - The object isa XML::LibXML::Document ok 2 - The object isa XML::LibXML::Document ok 3 - The object isa XML::LibXML::Document ok 4 - The object isa XML::LibXML::Document ok 5 - The object isa XML::LibXML::Document ok 6 - The object isa XML::LibXML::Document ok 7 - The object isa XML::LibXML::Document ok 8 - The object isa XML::LibXML::Document ok 9 - The object isa XML::LibXML::Document ok 10 - The object isa XML::LibXML::Document ok 11 - The object isa XML::LibXML::Document ok 12 - The object isa XML::LibXML::Document ok 13 - The object isa XML::LibXML::Document ok 14 - The object isa XML::LibXML::Document ok 15 - The object isa XML::LibXML::Document ok 16 - The object isa XML::LibXML::Document ok 17 - The object isa XML::LibXML::Document ok 18 - The object isa XML::LibXML::Document ok 19 - The object isa XML::LibXML::Document ok 20 - The object isa XML::LibXML::Document ok 21 - The object isa XML::LibXML::Document ok 22 - The object isa XML::LibXML::Document ok 23 - The object isa XML::LibXML::Document ok 24 - The object isa XML::LibXML::Document ok 25 - The object isa XML::LibXML::Document ok 26 - The object isa XML::LibXML::Document ok 27 - The object isa XML::LibXML::Document ok 28 - The object isa XML::LibXML::Document ok 29 - parses undef string with an error ok 30 - Error thrown passing '' ok 31 - Error thrown passing '<?xml version="1.0"?>\n' ok 32 - Error thrown passing '<!--ouch-->' ok 33 - Error thrown passing '<!DOCTYPE ...o "bar">]>' ok 34 - Error thrown passing '<ouch>' ok 35 - Error thrown passing '<ouch/>foo' ok 36 - Error thrown passing 'foo<ouch/>' ok 37 - Error thrown passing '<ouch foo=bar/>' ok 38 - Error thrown passing '<ouch foo="bar/>' ok 39 - Error thrown passing '<ouch>&</ouch>' ok 40 - Error thrown passing '<ouch>&\#0x20;</ouch>' ok 41 - Error thrown passing '<foobär/>' ok 42 - Error thrown passing '<ouch>&foo;</ouch>' ok 43 - Error thrown passing '<ouch>&gt</ouch>' ok 44 - Error thrown passing '<?xml vers...;="ouch"/>' ok 45 - Error thrown passing '<?xml vers...ar &foo;/>' ok 46 - Error thrown passing '<ouch><!---></ouch>' ok 47 - Error thrown passing '<ouch><!-----></ouch>' ok 48 - The object isa XML::LibXML::Document

    I looked at the 02parse.t code, but could not spot anything.

    Being that it seems related to XML parsing, I updated XML::SAX and XML::SAX::Base, in the hopes that it would help. It did not. Ironically, it did fix my original Perl code issue, which was why I was trying to package XML::LibXML in the first place. I'd still like to figure out this problem, though.

      You need to skip to the first line that says "not ok".

      - tye        

        You need to skip to the first line that says "not ok".
        Sry, I'm not following...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1076141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-25 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found