Skip Menu |

This queue is for tickets about the XML-Filter-Namespace CPAN distribution.

Report information
The Basics
Id: 132000
Status: new
Priority: 0/
Queue: XML-Filter-Namespace

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

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



Subject: Random test failures
The test suite often fails with a test log like this: ... # Failed test 'stripped attribute (XML::SAX::Expat)' # at t/basic.t line 146. # '<root attr='value' xmlns='urn:foo'>Text</root>' # doesn't match '(?^:\<root\ xmlns\=\'urn\:foo\'\ attr\=\'value\'\>Text\<\/root\>)' # Looks like you failed 1 test of 14. t/basic.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/14 subtests ... Or like this: ... # Failed test 'removed attribute in alternative namespace (XML::SAX::Expat)' # at t/basic.t line 146. # '<root attr='value' xmlns='urn:foo'>Text</root>' # doesn't match '(?^:\<root\ xmlns\=\'urn\:foo\'\ attr\=\'value\'\>Text\<\/root\>)' # Looks like you failed 1 test of 14. t/basic.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/14 subtests ... It seems that this happens only if XML::SAX::Expat is available as a SAX parser.
On 2020-02-27 17:33:50, SREZIC wrote: Show quoted text
> The test suite often fails with a test log like this: > > ... > # Failed test 'stripped attribute (XML::SAX::Expat)' > # at t/basic.t line 146. > # '<root attr='value' xmlns='urn:foo'>Text</root>' > # doesn't match '(?^:\<root\ xmlns\=\'urn\:foo\'\ > attr\=\'value\'\>Text\<\/root\>)' > # Looks like you failed 1 test of 14. > t/basic.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/14 subtests > ... > > Or like this: > ... > # Failed test 'removed attribute in alternative namespace > (XML::SAX::Expat)' > # at t/basic.t line 146. > # '<root attr='value' xmlns='urn:foo'>Text</root>' > # doesn't match '(?^:\<root\ xmlns\=\'urn\:foo\'\ > attr\=\'value\'\>Text\<\/root\>)' > # Looks like you failed 1 test of 14. > t/basic.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/14 subtests > ... > > It seems that this happens only if XML::SAX::Expat is available as a > SAX parser.
Hmmm, looking at http://analysis.cpantesters.org/solved?distv=XML-Filter-Namespace-1.03 it seems that it happens for other SAX parsers, too. So maybe it's something different --- hash randomization? Or a combination of multiple reasons?