Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Closed
rsrchboy opened this Issue Apr 7, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Collaborator

rsrchboy commented Apr 7, 2013

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.

@ghost ghost assigned rsrchboy Apr 12, 2013

rsrchboy added a commit to rsrchboy/autobox-JSON that referenced this issue Mar 27, 2014

fix encode/decode tests for 5.18
Finally!  Yeesh.  closes #4

@rsrchboy rsrchboy closed this in 5f8e9bc Mar 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment