#1 fix to allow testing with XML::LibXML::Parser to succeed

open
nobody
None
5
2004-05-04
2004-05-04
Larry Siden
No

Code in t/lib/TestRunner.pm intentionally causes the
test t/02yaml.t to skip testing of XML::LibXML
::SAX::Parser when the latter is registered on the
build machine as one of the SAX parsers (for example,
through ParserDetails.ini). This is because
t/02yaml.pl assumes that for each registered parser
module X, it can explicitly create a new instance by
invoking X->new(). However, for
XML::LibXML::SAX::Parser there is no "new()" method.
One creates a new instance by calling
XML::LibXML::SAX->new(). So there is no need to skip
testing of the Validator with XML::LibXML::SAX::Parser,
just instantiate it as XML::LibXML::SAX->new().

Run the attached patch as 'patch -p1 <
TestRunner.pm.patch' from the parent directory of the
XML-Validator-Schema development root dir.

-Larry Siden

Discussion

  • Larry Siden
    Larry Siden
    2004-05-04

    patches TestRunner.pm

     
    Attachments
  • Larry Siden
    Larry Siden
    2004-05-04

    • summary: fix to allow test of XML::LibXML::Parser to succeed --> fix to allow testing with XML::LibXML::Parser to succeed