Bug#710950: libmoosex-storage-perl: FTBFS with perl 5.18: test failures

Dominic Hargreaves dom at earth.li
Mon Jun 3 18:38:08 UTC 2013


Source: libmoosex-storage-perl
Version: 0.31-1
Severity: important
User: debian-perl at lists.debian.org
Usertags: perl-5.18-transition
Tags: sid jessie fixed-upstream
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=81695

This package FTBFS with perl 5.18 from experimental (in a clean sbuild
session):

#   Failed test '... got the right JSON'
#   at t/011_basic_json_w_utf8.t line 59.
#          got: '{"utf8_string":"ネットスーパー (Internet Shopping)","__CLASS__"
:"Foo"}'
#     expected: '{"__CLASS__":"Foo","utf8_string":"ネットスーパー (Internet Shop
ping)"}'

#   Failed test '... got the right JSON'
#   at t/011_basic_json_w_utf8.t line 93.
#          got: '{"utf8_string":"ネットスーパー (Internet Shopping)","__CLASS__"
:"Foo"}'
#     expected: '{"__CLASS__":"Foo","utf8_string":"ネットスーパー (Internet Shop
ping)"}'
# Looks like you failed 2 tests of 16.
t/011_basic_json_w_utf8.t ............... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/16 subtests 
t/012_param_json.t ...................... skipped: Test requires module 'MooseX:
:Storage::Format::JSONpm' but it's not found
t/020_basic_yaml.t ...................... ok
t/020_basic_yaml_syck.t ................. ok
t/020_basic_yaml_xs.t ................... ok

#   Failed test 'refreeze'
#   at t/030_with_checksum.t line 147.
#          got: '{"string":"foo","object":{"__CLASS__":"Foo","__DIGEST__":"5d6d0
ac5fb6861dbb9b3ac34467c9a72b5173048","number":2},"__CLASS__":"Foo","number":10,"
__DIGEST__":"610cfa34d8273b18e232498ce88a18036803c4c3","float":"10.5","array":[1
,2,3,4,5,6,7,8,9,10],"hash":{"4":null,"10":null,"5":null,"1":null,"8":null,"3":n
ull,"7":null,"6":null,"9":null,"2":null}}'
#     expected: '{"object":{"__DIGEST__":"5d6d0ac5fb6861dbb9b3ac34467c9a72b51730
48","number":2,"__CLASS__":"Foo"},"string":"foo","__CLASS__":"Foo","number":10,"
__DIGEST__":"610cfa34d8273b18e232498ce88a18036803c4c3","float":"10.5","array":[1
,2,3,4,5,6,7,8,9,10],"hash":{"8":null,"1":null,"3":null,"6":null,"7":null,"2":nu
ll,"9":null,"4":null,"10":null,"5":null}}'
# Looks like you failed 1 test of 26.
t/030_with_checksum.t ................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/26 subtests 

Looks like this is fixed in 0.32 and 0.33 (there are actually two
separate bugs here):

0.33
 * always JSONify data with sorted keys, to handle hash order randomization
   introduced in 5.17.* (RT#84287, Karen Etheridge)

0.32
... 
* Don't rely on hash key order in tests (RT#81695)

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)



More information about the pkg-perl-maintainers mailing list