Subject: | Module needs newish Test::Exception |
Building Const::Fast on an old perl 5.8.7 gave me this error:
Show quoted text
>perl -Mblib t/10-basics.t
ok 1 - Create scalar
ok 2 - Modify scalar
ok 3 - Modify ref to scalar
ok 4 - Modify ref to ref
ok 5 - Modify ref to ref to scalar
ok 6 - Create array
ok 7 - Modify array
ok 8 - Create hash (list)
not ok 9 - Odd number of values
# Failed test 'Odd number of values'
# at t/10-basics.t line 44.
# expecting: Regexp ((?i-xsm:\AOdd number of elements in hash assignment at t\/10\-
basics\.t line 44.?\Z))
# found: Odd number of elements in hash assignment at /local/perl-
5.8/lib/site_perl/5.8.3/Test/Exception.pm line 226
ok 10 - Modify hash
ok 11 - Hash, computed values
ok 12 - recursive structures are handles properly
ok 13 - threw Regexp ((?-xism:\AModification of a read-only value attempted at t\/10\-
basics\.t line 56\.\Z))
ok 14 - threw Regexp ((?-xism:\AModification of a read-only value attempted at t\/10\-
basics\.t line 57\.\Z))
ok 15 - threw Regexp ((?-xism:\AModification of a read-only value attempted at t\/10\-
basics\.t line 58\.\Z))
not ok 16 - Scalar reassign die
# Failed test 'Scalar reassign die'
# at t/10-basics.t line 65.
# expecting: Regexp ((?-xism:\AAttempt to reassign a readonly \w+ at t\/10\-basics\.t line
65\.?\Z))
# found: Attempt to reassign a readonly variable at /local/perl-
5.8/lib/site_perl/5.8.3/Test/Exception.pm line 226
ok 17 - const reassign no effect
not ok 18 - Array reassign die
# Failed test 'Array reassign die'
# at t/10-basics.t line 69.
# expecting: Regexp ((?-xism:\AAttempt to reassign a readonly \w+ at t\/10\-basics\.t line
69\.?\Z))
# found: Attempt to reassign a readonly variable at /local/perl-
5.8/lib/site_perl/5.8.3/Test/Exception.pm line 226
ok 19 - const reassign no effect
not ok 20 - Hash reassign die
Looking at Makefile.PL it indicated that any version of Test::Exception was fine. I had version
0.21. Forcing an update to Test::Exception v0.31 fixed the problem and all tests pass. Can
Makefile.PL be updated to include a proper minimum version?