mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
- Fix tests failing with XML::LibXML::SAX ( #625538 ) - Purge author tests Upstream: - Improve circular reference detection - Don't initialise PREFERRED_PARSER to undef during load - Disable entity expansion when using XML::Parser - Call to XML::Parser constructor now in isolated method for subclass overriding Bug: https://bugs.gentoo.org/625538 Package-Manager: Portage-2.3.24, Repoman-2.3.6
46 lines
1.0 KiB
Diff
46 lines
1.0 KiB
Diff
From 83774c87a0cc98379bc166fc0f6d028e68063a53 Mon Sep 17 00:00:00 2001
|
|
From: Kent Fredric <kentnl@gentoo.org>
|
|
Date: Tue, 27 Mar 2018 20:11:48 +1300
|
|
Subject: Force XML::SAX::PurePerl for XMLin/XMLout tests
|
|
|
|
As for some reason, accidentally getting XML::LibXML::SAX
|
|
results in this test failing with encoding problems.
|
|
|
|
Bug: https://bugs.gentoo.org/625538
|
|
---
|
|
t/1_XMLin.t | 3 +++
|
|
t/2_XMLout.t | 2 ++
|
|
2 files changed, 5 insertions(+)
|
|
|
|
diff --git a/t/1_XMLin.t b/t/1_XMLin.t
|
|
index 84935cd..bd5cf71 100644
|
|
--- a/t/1_XMLin.t
|
|
+++ b/t/1_XMLin.t
|
|
@@ -6,6 +6,9 @@ use IO::File;
|
|
use File::Spec;
|
|
|
|
use XML::Simple;
|
|
+use XML::SAX;
|
|
+
|
|
+$XML::SAX::ParserPackage = "XML::SAX::PurePerl";
|
|
|
|
# Initialise filenames and check they're there
|
|
|
|
diff --git a/t/2_XMLout.t b/t/2_XMLout.t
|
|
index 471d9ce..d0d8dcf 100644
|
|
--- a/t/2_XMLout.t
|
|
+++ b/t/2_XMLout.t
|
|
@@ -26,7 +26,9 @@ sub ReadFile {
|
|
}
|
|
|
|
use XML::Simple;
|
|
+use XML::SAX;
|
|
|
|
+$XML::SAX::ParserPackage = "XML::SAX::PurePerl";
|
|
# Confirm error when mandatory parameter missing
|
|
|
|
$_ = eval {
|
|
--
|
|
2.16.2
|
|
|