Skip Menu |

This queue is for tickets about the Convert-Bencode_XS CPAN distribution.

Report information
The Basics
Id: 87012
Status: open
Priority: 0/
Queue: Convert-Bencode_XS

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

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



Subject: Tests fail due to randomized hashes in perl 5.18
Perl 5.18 randomize hashes, so the t/001_tests.t test fails randomly like this: # Failed test at t/001_tests.t line 122. # got: ' 12345678 # Aliceauthor��lengtspam.mp3' # expected: ' 12345��length # Aliceauthospam.mp3' The test code is: is( freeze(bdecode('d8:spam.mp3d6:author5:Alice6:lengthi100000eee')), freeze({"spam.mp3" => {author => 'Alice', length => 100000}}) ); Random hash keys reorders frozen string value.
On Thu Jul 18 08:34:41 2013, ppisar wrote: Show quoted text
> Perl 5.18 randomize hashes, so the t/001_tests.t test fails randomly
This is trivially fixed "[i]f you set $Storable::canonical to some "TRUE" value". Attached is a patch to do that which fixes the test failures.
Subject: patch-t_001_tests_t
Download patch-t_001_tests_t
application/octet-stream 455b

Message body not shown because it is not plain text.