[perl-XML-Hash-LX] Accomodate test to random hash order

Petr Pisar ppisar at fedoraproject.org
Mon Jun 9 15:45:32 UTC 2014


commit fe176891b76a3aa80689cba3b41c360f849845e2
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Jun 9 17:44:17 2014 +0200

    Accomodate test to random hash order

 ...ix-unpredictable-order-at-empty-attr-test.patch |   31 ++++++++++++++++++++
 perl-XML-Hash-LX.spec                              |    8 ++++-
 2 files changed, 38 insertions(+), 1 deletions(-)
---
diff --git a/XML-Hash-LX-0.0603-Fix-unpredictable-order-at-empty-attr-test.patch b/XML-Hash-LX-0.0603-Fix-unpredictable-order-at-empty-attr-test.patch
new file mode 100644
index 0000000..7633244
--- /dev/null
+++ b/XML-Hash-LX-0.0603-Fix-unpredictable-order-at-empty-attr-test.patch
@@ -0,0 +1,31 @@
+From 19c3c8bbb1646dc5bfe7f0d3df5efb3ba58ada80 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Mon, 9 Jun 2014 17:41:32 +0200
+Subject: [PATCH] Fix unpredictable order at 'empty attr' test
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+RT#81645
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ t/01-conv.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/01-conv.t b/t/01-conv.t
+index f7b06c5..30f24dc 100644
+--- a/t/01-conv.t
++++ b/t/01-conv.t
+@@ -297,7 +297,7 @@ our $xml = qq{<?xml version="1.0" encoding="utf-8"?>\n};
+ }
+ {
+ 	is
+-		$data = hash2xml( { node => { -attr => undef, '#cdata' => undef, '/' => undef, x=>undef } }, cdata => '#cdata', comm => '/' ),
++		$data = hash2xml( { node => [ { -attr => undef }, { '#cdata' => undef }, { '/' => undef }, { x=>undef } ] }, cdata => '#cdata', comm => '/' ),
+ 		qq{$xml<node attr=""><!----><x/></node>\n},
+ 		'empty attr',
+ 	;
+-- 
+1.9.3
+
diff --git a/perl-XML-Hash-LX.spec b/perl-XML-Hash-LX.spec
index 32baae0..35ecd60 100644
--- a/perl-XML-Hash-LX.spec
+++ b/perl-XML-Hash-LX.spec
@@ -2,12 +2,14 @@
 Name:           perl-XML-Hash-LX
 # use 2-digits version because it is expected in the future
 Version:        %(echo '%{cpan_version}' | sed 's/\(\...\)\(.\)/\1.\2/')
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Convert hash to XML and XML to hash using LibXML
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/XML-Hash-LX/
 Source0:        http://www.cpan.org/authors/id/M/MO/MONS/XML-Hash-LX-%{cpan_version}.tar.gz
+# Accomodate test to random hash order, bug #1106282, CPAN RT#81645
+Patch0:         XML-Hash-LX-0.0603-Fix-unpredictable-order-at-empty-attr-test.patch
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl(inc::Module::Install) >= 0.79
@@ -35,6 +37,7 @@ easy data transformations.
 
 %prep
 %setup -q -n XML-Hash-LX-%{cpan_version}
+%patch0 -p1
 # Remove bundled modules
 rm -rf ./inc/*
 sed -i -e '/^inc\//d' MANIFEST
@@ -57,6 +60,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Jun 09 2014 Petr Pisar <ppisar at redhat.com> - 0.06.03-5
+- Accomodate test to random hash order (bug #1106282)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.06.03-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list