Skip Menu |

This queue is for tickets about the Readonly-XS CPAN distribution.

Report information
The Basics
Id: 29778
Status: open
Priority: 0/
Queue: Readonly-XS

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

Bug Information
Severity: Normal
Broken in: 1.04
Fixed in: (no value)



Subject: Carp
require Carp; does not import Carp subs, so following statement fails: Carp::croak "Readonly::XS is not a standalone module. You should not use it directly."; it should be written as Carp::croak("Readonly::XS is not a standalone module. You should not use it directly."); -- Alexandr Ciornii, http://chorny.net
Here's what happens during `make test`: t/test......String found where operator expected at /disk1/src/PERL/.cpanplus/5.9.5/build/Readonly-XS-1.04/blib/lib/Readonly/XS.pm line 36, near "Carp::croak "Readonly::XS is not a standalone module. You should not use it directly."" (Do you need to predeclare Carp::croak?) # Failed test 'Unauthorized use' # at t/test.t line 17. # got: 'syntax error # BEGIN not safe after errors--compilation aborted at /disk1' # expected: 'Readonly::XS is not a standalone module. You should not use it directly' String found where operator expected at /disk1/src/PERL/.cpanplus/5.9.5/build/Readonly-XS-1.04/blib/lib/Readonly/XS.pm line 36, near "Carp::croak "Readonly::XS is not a standalone module. You should not use it directly."" (Do you need to predeclare Carp::croak?) # Failed test 'Authorized use' # at t/test.t line 22. # got: 'syntax error at /disk1/src/PERL/.cpanplus/5.9.5/build/Readonly-XS-1.04/blib/lib/Readonly/XS.pm line 36, near "Carp::croak "Readonly::XS is not a standalone module. You should not use it directly."" # BEGIN not safe after errors--compilation aborted at /disk1/src/PERL/.cpanplus/5.9.5/build/Readonly-XS-1.04/blib/lib/Readonly/XS.pm line 38. # Compilation failed in require at (eval 5) line 2. # BEGIN failed--compilation aborted at (eval 5) line 2. # ' # expected: '' # Failed test 'is_sv_readonly loaded' # at t/test.t line 26. # Failed test 'make_sv_readonly loaded' # at t/test.t line 27. Undefined subroutine &Readonly::is_sv_readonly called at t/test.t line 30. # Looks like you planned 10 tests but only ran 4. # Looks like you failed 4 tests of 4 run. # Looks like your test died just after 4. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 10/10 subtests Test Summary Report ------------------- t/test.t (Wstat: 65280 Tests: 4 Failed: 4) Failed test number(s): 1-4 Non-zero exit status: 255 Parse errors: Bad plan. You planned 10 tests but ran 4. Files=1, Tests=4, 0 wallclock secs ( 0.01 usr 0.05 sys + 0.07 cusr 0.03 csys = 0.16 CPU) Result: FAIL Failed 1/1 test programs. 4/4 subtests failed. -- - - Martin 'Kingpin' Thurn