Subject: | Random test failures with perl 5.18 and later (hash randomization) |
I see the following failures with newer perls (>= 5.18) while running t/02-rules/02-rulei.t --- probably caused by hash randomization:
# Failed test at t/02-rules/02-rulei.t line 30.
# got: 'Tandemrepeat 'VNTR repeat': -minscore=>50 -minperiod=>5 -match=>2 -pm=>80 -pi=>20 -mismatch=>3 -maxperiod=>9 -minsim=>80 -exp=>6 -maxsize=>1000 -minsize=>30 -maxsim=>100 -indels=>5 -maxscore=>0 '
# expected: 'Tandemrepeat 'VNTR repeat': -pm=>80 -minperiod=>5 -minscore=>50 -pi=>20 -minsim=>80 -maxscore=>0 -exp=>6 -maxperiod=>9 -maxsim=>100 -match=>2 -maxsize=>1000 -minsize=>30 -indels=>5 -mismatch=>3 '
# Failed test at t/02-rules/02-rulei.t line 31.
# got: '-minscore=>50 -minperiod=>5 -match=>2 -pm=>80 -pi=>20 -mismatch=>3 -maxperiod=>9 -minsim=>80 -exp=>6 -maxsize=>1000 -minsize=>30 -maxsim=>100 -indels=>5 -maxscore=>0 '
# expected: '-pm=>80 -minperiod=>5 -minscore=>50 -pi=>20 -minsim=>80 -maxscore=>0 -exp=>6 -maxperiod=>9 -maxsim=>100 -match=>2 -maxsize=>1000 -minsize=>30 -indels=>5 -mismatch=>3 '
# Looks like you failed 2 tests of 14.
t/02-rules/02-rulei.t ..............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/14 subtests
Usually using something like sort keys %hash or so helps.