Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

t/sanity.t fails under 5.17.10 due to hash key randomization #4

Closed
RsrchBoy opened this Issue · 0 comments

1 participant

@RsrchBoy
Collaborator

Perl 5.17 has introduced a hash key randomization that we're running afoul of, e.g.

PERL_DL_NONLAZY=1 /home/travis/perl5/perlbrew/perls/perl-5.17.10/bin/perl5.17.10 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
[05:54:12] t/sanity.t .. 1/?
# Failed test 'hash to json'
# at t/sanity.t line 7.
# got: '{"age":46,"name":"Jim"}'
# expected: '{"name":"Jim","age":46}'
# Failed test 'hash to json'
# at t/sanity.t line 11.
# got: '{"age":46,"name":"Jim"}'
# expected: '{"name":"Jim","age":46}'
# Looks like you failed 2 tests of 8.
[05:54:12] t/sanity.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/8 subtests
[05:54:12]
Test Summary Report
-------------------
t/sanity.t (Wstat: 512 Tests: 8 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 2
Files=1, Tests=8, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.03 cusr 0.01 csys = 0.08 CPU)
Result: FAIL
Failed 1/1 test programs. 2/8 subtests failed.

...or also this travis build job, starting at line 820.

@RsrchBoy RsrchBoy was assigned
@RsrchBoy RsrchBoy referenced this issue from a commit in RsrchBoy/autobox-JSON
@RsrchBoy RsrchBoy fix encode/decode tests for 5.18
Finally!  Yeesh.  closes #4
a1a47f8
@RsrchBoy RsrchBoy closed this issue from a commit
@RsrchBoy RsrchBoy fix encode/decode tests for 5.18
Finally!  Yeesh.  closes #4
5f8e9bc
@RsrchBoy RsrchBoy closed this in 5f8e9bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.