Skip Menu |

This queue is for tickets about the HTML-Widget CPAN distribution.

Report information
The Basics
Id: 85970
Status: open
Priority: 0/
Queue: HTML-Widget

People
Owner: Nobody in particular
Requestors: gregoa [...] debian.org
Cc:
AdminCc:

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



From: gregoa [...] cpan.org
Subject: libhtml-widget-perl: FTBFS with perl 5.18: test failure
This bug has been forwarded from http://bugs.debian.org/711572 Source: libhtml-widget-perl Version: 1.11-3 Severity: important User: debian-perl@lists.debian.org Usertags: perl-5.18-transition Tags: sid jessie This package FTBFS with perl 5.18 from experimental (in a clean sbuild session): # Failed test 'constraint value' # at t/06bugs_select_zero_key_constraint.t line 23. # got: '0' # expected: '1' # Failed test 'constraint value' # at t/06bugs_select_zero_key_constraint.t line 25. # got: '1' # expected: '0' # Looks like you failed 2 tests of 3. t/06bugs_select_zero_key_constraint.t .... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/3 subtests # Failed test 'Errors correct with no params' # at t/get_errors.t line 30. # Structures begin differing at: # $got->[0] = 'Baz error' # $expected->[0] = 'bad foo' # Failed test 'Errors correct with no params' # at t/get_errors.t line 88. # Structures begin differing at: # $got->[0] = 'Baz error' # $expected->[0] = 'bad foo' # Looks like you failed 2 tests of 6. t/get_errors.t ........................... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/6 subtests -- Dominic Hargreaves | http://www.larted.org.uk/~dom/ PGP key 5178E2A5 from the.earth.li (keyserver,web,email) Thanks in advance, gregor herrmann, Debian Perl Group
The attached patch uses Test::Deep to deal with the hash randosmisation introduced by Perl 5.17.x
Subject: hash-randomisation.patch
Description: use Test::Deep against hash randomisation causing test failures Origin: vendor Bug: http://rt.cpan.org/Public/Bug/Display.html?id=85970 Bug-Debian: http://bugs.debian.org/711572 Author: gregor herrmann <gregoa@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',
Any news? Did you get a chance to look at the patch yet? intrigeri, Debian Perl Group