rjbs / Perl-Critic-Tics

perl critic policies for things that make rjbs nuts
3 stars 4 forks source link

Perl-Critic-Tics-0.009 fails a test if CPAN::Meta is not installed #4

Closed ppisar closed 10 years ago

ppisar commented 10 years ago

Perl-Critic-Tics-0.009 reworked t/00-report-prereqs.t which dies now if CPAN::Meta is not available:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Use of uninitialized value in string eq at t/00-report-prereqs.t line 31.
Can't call method "requirements_for" on unblessed reference at t/00-report-prereqs.t line 121.
# Looks like your test exited with 25 before it could output anything.
t/00-report-prereqs.t ..
Dubious, test returned 25 (wstat 6400, 0x1900)
Failed 1/1 subtests

This looks like a change in distzilla. See https://github.com/chansen/p5-http-tiny/issues/50 for the same bug in different project.

ppisar commented 10 years ago

I'm sorry. This bug belongs to a different distribution. There is no such provlem in Perl-Critic-Tics.