Skip Menu |

This queue is for tickets about the XML-SAX-Simple CPAN distribution.

Report information
The Basics
Id: 133305
Status: new
Priority: 0/
Queue: XML-SAX-Simple

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.08
Fixed in: (no value)



Subject: t/1_XMLin.t and t/2_XMLout.t may fail
On some of my smoker systems the test suite fails: ... 65:DataCompare: web_source -> web_target1 & web_target2 != web_source -> web_target1 & web_target2 t/1_XMLin.t ..... Failed 1/65 subtests 74:DataCompare: &C& != &C& t/2_XMLout.t .... Failed 1/188 subtests ... Statistical analysis does not give any clues. The problem could depend on the installed SAX parsers --- maybe it fails if only the default bundled pure-perl SAX is installed and used (AFAIK it has a number of known issues). Probably it would be good to print out the used SAX parser in the test diagnostics.
On 2020-09-10 12:07:47, SREZIC wrote: Show quoted text
> On some of my smoker systems the test suite fails: > > ... > 65:DataCompare: web_source -> web_target1 & web_target2 != web_source > -> web_target1 & web_target2 > t/1_XMLin.t ..... > Failed 1/65 subtests > 74:DataCompare: &C& != &C& > t/2_XMLout.t .... > Failed 1/188 subtests > ... > > Statistical analysis does not give any clues. The problem could depend > on the installed SAX parsers --- maybe it fails if only the default > bundled pure-perl SAX is installed and used (AFAIK it has a number of > known issues). Probably it would be good to print out the used SAX > parser in the test diagnostics.
It seems that XML::LibXML::SAX is the problematic one. On a system without fails /opt/perl-5.32.0t/lib/site_perl/5.32.0/XML/SAX/ParserDetails.ini looks like this: [XML::LibXML::SAX::Parser] http://xml.org/sax/features/namespaces = 1 [XML::LibXML::SAX] http://xml.org/sax/features/namespaces = 1 [XML::SAX::Expat] http://xml.org/sax/features/external-general-entities = 1 http://xml.org/sax/features/external-parameter-entities = 1 http://xml.org/sax/features/namespaces = 1 As far as I know the last mentioned parser "wins" (given that the feature set is sufficient). If I comment out the whole XML::SAX::Expat section, then the test suite starts to fail. Note that XML::LibXML lost its old ability to declare as a SAX parser some time ago. This was restored in the latest version, see https://metacpan.org/source/SHLOMIF/XML-LibXML-2.0205/Changes#L4 This explains why there were no failures on CPAN Testers for a long time. Another problem is that the installation order matters; a system is not affected if first XML::LibXML and later XML::SAX::Expat is installed, or XML::LibXML was never installed.