Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Installing XML::Parser

by leriksen (Curate)
on Jun 24, 2006 at 00:51 UTC ( #557344=note: print w/replies, xml ) Need Help??

in reply to Installing XML::Parser

Try running just that test file on its own and looking at the failures - you could try
perl t/astress.t
though you may need to check your various paths (PERL5LIB, LD_LIBRARY_PATH etc) are all OK first.

Then check the test failures, and if it still isnt clear, post the results here - maybe someone in the monastery can help from the information in there.

...reality must take precedence over public relations, for nature cannot be fooled. - R P Feynmann

Replies are listed 'Best First'.
Re^2: Installing XML::Parser
by Joost (Canon) on Jun 24, 2006 at 10:53 UTC
Re^2: Installing XML::Parser
by Anonymous Monk on Jun 24, 2006 at 14:30 UTC


    Thanks for the suggestion. I did that, but it didn't give much additional info:

    $ perl -w t/astress.t 1..27 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 not ok 19 not ok 20 ok 21 ok 22 ok 23 not ok 24 ok 25 ok 26 ok 27

    And I found the .t file itself very hard to interpret: couldn't really tell what was being tested and what the expected values were -- didn't seem to be using a standard testing module. Does this help at all?

      Your right, it doesnt use any test modules, but outputs TAP directly. I cant provoke the same failures on my FC4 box, but the lines of t/astress.t you need to add some printf's around are

      1. test 19 -> line 108 - print out the value of $p->current_line - yours is not 17
      2. test 20 -> line 109 - print out the value of $p->current_column - yours is not 20
      3. test 24 -> line 230 - print out the values of $cmpstr and $pos - yours are not equal

      Of course none of this shows you the real problem, just the symptoms. You'll probably have to run the test file under the perl debugger so you can see more - though even that is made harder by the fact that there is some XS code to deal with to, which you cant trace into with the perl debugger.

      Perhaps the best you can hope for is that the differences are not important, as far as the problem you are trying to solve - perhaps their white space related.

      ...reality must take precedence over public relations, for nature cannot be fooled. - R P Feynmann

        Thanks for your help,

        Here are the values for the three tests I'm failing:

        1. test 19 -> $p->current_line = 0
        2. test 20 -> $p->current_column = 0
        3. test 24 -> the values are definitely not equal (see below)
        $cmpstr: <blah> 2nd line in bar </blah> 3rd line in bar <!-- Isn't this a doozy --> ===================^ </bar> $pos: <blah> 2nd line in bar </blah> 3rd line in bar <!-- Isn't this a doozy --> ^ </bar>

        I opened up a bug report on CPAN, but I'll update here if/when I get somewhere with this. Thanks again!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://557344]
[hippo]: Hope everyone else is enjoying their lunch too.
[1nickt]: However, note that it takes between 2 and 4 hours for a tick to be able to start transmitting bacteria. So even if it has burrowed in and started eating, if you get it soon you should be OK.
[perldigious]: 1nickt: No more red meat! It would be more humane to just kill you, wouldn't it! :-)
[1nickt]: Just don't make it barf.
[1nickt]: perldigious that's exactly what my stepson says.
[1nickt]: the tick that can make you a vegetarian
[perldigious]: Your Mother: Yeah, I have a tool for ticks that I use (mostly on my dogs thankfully), but it's just a cheapo one I got from my vets office... it works pretty good though.
erix saw a tick in a natural history museum collected from the scrotum of the curator (it was removed)
[Your Mother]: The exhibit, the tick, or the scrotum?
[erix]: (the man is even a paleontologist )

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-05-24 13:12 GMT
Find Nodes?
    Voting Booth?