Skip Menu |

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

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

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

Bug Information
Severity: Normal
Broken in: 0.99
Fixed in: (no value)



Subject: [PATCH] 21saxini.t fails if SAX.ini exists
I had a SAX.ini that said: ParserPackage = XML::LibXML::SAX As a result, 21saxini.t failed. The reason is that it does "push @INC, 't/lib';" writes "t/lib/SAX.ini", and expects that to be used. If @INC already contained SAX.ini, then "t/lib/SAX.ini" will have no effect, and the tests that expect it to will fail. The solution is trivial: use unshift instead of push, so that "t/lib/SAX.ini" will take precedence over any SAX.ini already on the system. Patch attached.
Subject: saxini.patch.txt
--- t/21saxini.t 2009-10-10 16:16:30.000000000 -0500 +++ t/21saxini.t 2012-10-02 18:32:14.472984395 -0500 @@ -14,7 +14,7 @@ rmtree('t/lib', 0, 0); mkpath('t/lib', 0, 0777); -push @INC, 't/lib'; +unshift @INC, 't/lib'; write_file('t/lib/TestParserPackage.pm', <<EOT); package TestParserPackage; use XML::SAX::Base;