Subject: | Fails test, and documentation unclear |
I am running Debian Linux with Perl 5.8.0. make test fails, see the
output at the end.
An additional issue is that your documentation does not make it clear
whether your module is usable in chained method calls. It is not,
and that fact should be documented. (OTOH had I known that fact then
I would not have tried downloading it to find out, which would mean
that nobody would have submitted the above bug report...)
If you want advice on how to make it able to handle chained method
calls, the autoload should always return null objects, and then you
can use an [overload] to return strings and numbers correctly, and
issue appropriate warnings. You need to issue warnings yourself,
returning an undef in an overload will work under 5.8, but
segfaults 5.6.
Here is the output from the failed test.
localhost:~/.cpan/build/Class-Null-1.02# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01distribution....NOK 2# Failed test (/usr/local/share/perl/5.8.0/Test/Distribution.pm at line 170)
t/01distribution....ok 8/8# Looks like you failed 1 tests of 8.
t/01distribution....dubious
Test returned status 1 (wstat 256, 0x100)
Constant subroutine __need_size_t redefined at /usr/lib/perl/5.8.0/stddef.ph line 146.
DIED. FAILED test 2
Failed 1/8 tests, 87.50% okay
t/02null............ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/01distribution.t 1 256 8 1 12.50% 2
Failed 1/2 test scripts, 50.00% okay. 1/40 subtests failed, 97.50% okay.
make: *** [test_dynamic] Error 29