Subject: | Test suite fails (with PP variant of List::MoreUtils?) |
On some smoker systems I see the following failure:
...
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
Use of uninitialized value in modulus (%) at (eval 129) line 2.
# Failed test 'part'
# at t/002_objinterface.t line 106.
# got: '2:4:6:8:2:3:5:7:1:3:5:7:9'
# expected: '2,4,6,8,2:3,5,7,1,3,5,7,9'
# Looks like you failed 1 test of 52.
t/002_objinterface.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/52 subtests
Problem while processing '[% my1to9even = [ 2, 4, 6, 8 ];
my1to9prim = [ 2, 3, 5, 7 ];
my1to9odd = [ 1, 3, 5, 7, 9 ];
fourletters = [ 'a', 'b', 'c', 'd' ];
fiveletters = [ 'a', 'b', 'c', 'd', 'e' ];
longlist = [ 'This', 'is', 'a', 'list' ];
USE ListMoreUtilsVMethods; %][% PERL %] my $i = 0; my $fn = sub { $_[0]->[$i++] % 2 }; $stash->set( mod2 => $fn ); [% END %][% parts = my1to9even.merge( my1to9prim, my1to9odd ).part( \mod2 );
parts.0 = parts.0.join(","); parts.1 = parts.1.join(","); parts.join(":"); %]': undef error - Can't use string ("2") as an ARRAY ref while "strict refs" in use at (eval 129) line 2.
# Looks like your test exited with 255 just after 43.
t/003_vmethods.t ......
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 9/52 subtests
...
This seems to happen only with the PP variant of List::MoreUtils, but not if List::MoreUtils::XS is installed.