[libhtml-widget-perl] 01/08: Add patch to fix hash randomisation issue with perl 5.18 in tests.

gregor herrmann gregoa at debian.org
Tue Oct 29 19:39:37 UTC 2013


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libhtml-widget-perl.

commit f578f88e6e4f8ee7c741d13e1657c524c16c294d
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Oct 29 20:31:03 2013 +0100

    Add patch to fix hash randomisation issue with perl 5.18 in tests.
    
    Add build dependency on libtest-deep-perl.
    
    Closes: #711572
---
 debian/control                          |    1 +
 debian/patches/hash-randomisation.patch |   57 +++++++++++++++++++++++++++++++
 debian/patches/series                   |    1 +
 3 files changed, 59 insertions(+)

diff --git a/debian/control b/debian/control
index fc5ca5a..68f6397 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Build-Depends-Indep: perl,
  libhtml-tree-perl (>= 4),
  libmodule-install-perl,
  libmodule-pluggable-fast-perl,
+ libtest-deep-perl,
  libtest-mockobject-perl,
  libtest-nowarnings-perl,
  libtest-pod-perl
diff --git a/debian/patches/hash-randomisation.patch b/debian/patches/hash-randomisation.patch
new file mode 100644
index 0000000..f9a647d
--- /dev/null
+++ b/debian/patches/hash-randomisation.patch
@@ -0,0 +1,57 @@
+Description: use Test::Deep against hash randomisation causing test failures
+Origin: vendor
+Bug: http://rt.cpan.org/Public/Bug/Display.html?id=85970
+Forwarded: http://rt.cpan.org/Public/Bug/Display.html?id=85970
+Bug-Debian: http://bugs.debian.org/711572
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-10-29
+
+--- a/t/06bugs_select_zero_key_constraint.t
++++ b/t/06bugs_select_zero_key_constraint.t
+@@ -1,7 +1,8 @@
+ use strict;
+ use warnings;
+ 
+-use Test::More tests => 3;
++use Test::More tests => 2;
++use Test::Deep;
+ 
+ use HTML::Widget;
+ use lib 't/lib';
+@@ -20,7 +21,5 @@
+ 
+ my $keys = $constraints[0]->in;
+ 
+-is( $keys->[0], 1, 'constraint value' );
+-
+-is( $keys->[1], 0, 'constraint value' );
++cmp_bag( $keys, [0, 1], 'constraint values' );
+ 
+--- a/t/get_errors.t
++++ b/t/get_errors.t
+@@ -2,6 +2,7 @@
+ use warnings;
+ 
+ use Test::More tests => 6;
++use Test::Deep;
+ 
+ use HTML::Widget;
+ use lib 't/lib';
+@@ -27,7 +28,7 @@
+             type    => 'OtherType'
+         } );
+ 
+-    is_deeply( [
++    cmp_bag( [
+             new HTML::Widget::Error( {
+                     type    => 'OtherType',
+                     name    => 'baz',
+@@ -85,7 +86,7 @@
+         "Errors correct with name provided"
+     );
+ 
+-    is_deeply( [
++    cmp_bag( [
+             new HTML::Widget::Error( {
+                     type    => 'OtherType',
+                     name    => 'baz',
diff --git a/debian/patches/series b/debian/patches/series
index 1900ab5..563cead 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ whatis-entries.patch
 pod-coverage-test.patch
 html-tree-4.patch
 spelling.patch
+hash-randomisation.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhtml-widget-perl.git



More information about the Pkg-perl-cvs-commits mailing list