Subject: | Rare test failures |
In rare cases the test script fails:
...
# Failed test '-Or => [Int => { -where => sub { $_ > 12 } => 0] ...}, 2.2)'
# at t/Scalar-Validation.t line 663.
# expecting: Regexp ((?^:'2.2' is not \(Int or greater than 12\)))
# found: Error: Rules: cannot call any special rule inside of rule '-Or'
# at t/Scalar-Validation.t line 662.
Warning: Test::Exception::lives_ok(parameter): value '-1' is not a positive integer at t/Scalar-Validation.t line 719.
Warning: Test::Exception::lives_ok(range_1): value '' is not an integer at t/Scalar-Validation.t line 739.
# Looks like you failed 1 test of 257.
t/Scalar-Validation.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/257 subtests
...
It's possible that this problem is hash randomization related. I can reproduce the failure on an Ubuntu16.04 system with a self-compiled perl 5.26.0 & 5.26.1 using PERL_HASH_SEED=142 PERL_PERTURB_KEYS=NO
However, on another system the failing seed value was 154, so maybe there are also other factors involved.