Skip Menu |

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

Report information
The Basics
Id: 117736
Status: new
Priority: 0/
Queue: XML-SAX-Builder

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

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



Subject: Hash randomization (?) issue in tests
Starting with 5.17.x (probably 5.17.6, the introduction of hash randomization) tests fail randomly: http://matrix.cpantesters.org/?dist=XML-SAX-Builder%200.02 Test log looks like this: # Failed test 'got xml with multiple namespace' # at t/basic.t line 41. # got: '<foo xmlns:bar='urn:bar' xmlns='urn:foo' />' # expected: '<foo xmlns='urn:foo' xmlns:bar='urn:bar' />' # Failed test 'complex xhtml example' # at t/basic.t line 113. # got: '<html xmlns='http://www.w3.org/1999/xhtml'><head><title>The Title</title><meta name='generator' content='XML::SAX::Builder' /></head><body><h1>Heading</h1><p>Paragraph &amp; Stuff &lt;...&gt;</p><ul><li>List Item</li><li>Another List Item</li></ul></body></html>' # expected: '<html xmlns='http://www.w3.org/1999/xhtml'><head><title>The Title</title><meta content='XML::SAX::Builder' name='generator' /></head><body><h1>Heading</h1><p>Paragraph &amp; Stuff &lt;...&gt;</p><ul><li>List Item</li><li>Another List Item</li></ul></body></html>' # Looks like you failed 2 tests of 15. t/basic.t ....... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/15 subtests (1 TODO test unexpectedly succeeded)
On 2016-09-10 05:30:13, SREZIC wrote: Show quoted text
> Starting with 5.17.x (probably 5.17.6, the introduction of hash > randomization) tests fail randomly: > http://matrix.cpantesters.org/?dist=XML-SAX-Builder%200.02 > > Test log looks like this: > > # Failed test 'got xml with multiple namespace' > # at t/basic.t line 41. > # got: '<foo xmlns:bar='urn:bar' xmlns='urn:foo' />' > # expected: '<foo xmlns='urn:foo' xmlns:bar='urn:bar' />' > > # Failed test 'complex xhtml example' > # at t/basic.t line 113. > # got: '<html > xmlns='http://www.w3.org/1999/xhtml'><head><title>The > Title</title><meta name='generator' content='XML::SAX::Builder' > /></head><body><h1>Heading</h1><p>Paragraph &amp; Stuff > &lt;...&gt;</p><ul><li>List Item</li><li>Another List > Item</li></ul></body></html>' > # expected: '<html > xmlns='http://www.w3.org/1999/xhtml'><head><title>The > Title</title><meta content='XML::SAX::Builder' name='generator' > /></head><body><h1>Heading</h1><p>Paragraph &amp; Stuff > &lt;...&gt;</p><ul><li>List Item</li><li>Another List > Item</li></ul></body></html>' > # Looks like you failed 2 tests of 15. > t/basic.t ....... > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/15 subtests > (1 TODO test unexpectedly succeeded)
For successful tests one can set PERL_HASH_SEED to 17, it seems.