Subject: | 'Can't call method "does_role" on an undefined value' failures in test suite |
The test suite fails under some circumstances with 'Can't call method
"does_role" on an undefined value' - see the log below, and the test
results reported at http://www.cpantesters.org/distro/C/CatalystX-
RoleApplicator.html#CatalystX-RoleApplicator-0.005
mike@charron:~/.cpan/build/CatalystX-RoleApplicator-0.005-6h7pHs$ perl
Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for CatalystX::RoleApplicator
Writing MYMETA.yml and MYMETA.json
mike@charron:~/.cpan/build/CatalystX-RoleApplicator-0.005-6h7pHs$ make
cp lib/CatalystX/RoleApplicator.pm blib/lib/CatalystX/RoleApplicator.pm
Manifying blib/man3/CatalystX::RoleApplicator.3
mike@charron:~/.cpan/build/CatalystX-RoleApplicator-0.005-6h7pHs$ make
test
PERL_DL_NONLAZY=1 /home/mike/perl5/perlbrew/perls/perl-
5.14.1/bin/perl5.14.1 "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/01_basic.t .. 1/5 Can't call method "does_role" on an undefined value
at t/01_basic.t line 22.
# Looks like you planned 5 tests but ran 3.
# Looks like your test exited with 255 just after 3.
t/01_basic.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/5 subtests
Test Summary Report
-------------------
t/01_basic.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 5 tests but ran 3.
Files=1, Tests=3, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.75 cusr
0.07 csys = 0.85 CPU)
Result: FAIL
Failed 1/1 test programs. 0/3 subtests failed.
make: *** [test_dynamic] Error 255