Skip Menu |

This queue is for tickets about the Const-Fast CPAN distribution.

Report information
The Basics
Id: 78332
Status: resolved
Priority: 0/
Queue: Const-Fast

People
Owner: Nobody in particular
Requestors: TJENNESS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.011
Fixed in: (no value)



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?
On Thu Jul 12 14:45:09 2012, TJENNESS wrote: Show quoted text
> Building Const::Fast on an old perl 5.8.7 gave me this error: > >
> >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?
Fair bet this was a issue related to Sub::Uplevel. It's not trivial to figure out what we need, so I think I'll bump the minimum version of T::E to 0.29 (last version whose changelog mentions S::U), though odds are it was fixed earlier. Leon
On Tue Jul 17 12:39:53 2012, LEONT wrote: Show quoted text
> Fair bet this was a issue related to Sub::Uplevel. It's not trivial to > figure out what we need, so I think I'll bump the minimum version of > T::E to 0.29 (last version whose changelog mentions S::U), though odds > are it was fixed earlier.
Fixed in Const::Fast 0.012