[ADAMK - Sat Apr 9 04:00:49 2005]:
Show quoted text> Looking at the follow URL
>
>
http://www.nntp.perl.org/group/perl.cpan.testers/194069
>
> You will see that a test for PPI 0.903 that used the module
> Test::ClassAPI failed.
>
> Now, Test::ClassAPI is included with package (using M:I) but for some
> reason isn't being made available to the test script in the INC path.
This is a bug in Module::Build, which has been reported to them here:
https://rt.cpan.org/NoAuth/Bug.html?id=12673
To demonstrate:
[kane@coke ~...build/PPI-0.906]$ cat x.pl
use Module::Build;
warn "Using version: $Module::Build::VERSION\n";
my $mb = eval { Module::Build->new_from_context( %buildflags ) };
$mb->dispatch('build');
$mb->dispatch('test');
[kane@coke ~...build/PPI-0.906]$ perlc x.pl
Using version: 0.261
/opt/bin/perl Build.PL
*** ExtUtils::AutoInstall version 0.61
*** Checking for dependencies...
[Core Features]
- File::Spec ...loaded. (0.87 >= 0.82)
- Test::More ...loaded. (0.47 >= 0.47)
- Test::ClassAPI ...loaded. (1.02 >= 1.02)
- Class::Inspector ...loaded. (1.08 >= 1.07)
- Class::Autouse ...loaded. (1.17 >= 1.12)
- Clone ...loaded. (0.16 >= 0.13)
- File::Slurp ...loaded. (9999.09 >= 9999.04)
- List::Util ...loaded. (1.13 >= 1.11)
- List::MoreUtils ...loaded. (0.10 >= 0.04)
- Storable ...loaded. (2.09 >= 1.13)
*** ExtUtils::AutoInstall configuration finished.
Checking whether your kit is complete...
Looks good
Deleting Build
Removed previous script 'Build'
Creating new 'Build' script for 'PPI' version '0.906'
t/01_compile............ok
t/02_api................Can't locate Test/ClassAPI.pm in @INC (@INC contains: /Users/kane/
.cpanplus/5.8.3/build/PPI-0.906/blib/lib /Users/kane/.cpanplus/5.8.3/build/PPI-0.906/
blib/arch /sw/lib/perl5 /sw/lib/perl5/darwin /Users/kane/sources/p4/other/archive-
extract/lib /Users/kane/sources/p4/other/file-fetch/lib /Users/kane/sources/p4/other/
archive-tar-new/lib /Users/kane/sources/p4/other/carp-trace/lib /Users/kane/sources/p4/
other/log-message/lib /Users/kane/sources/p4/other/module-load/lib /Users/kane/
sources/p4/other/params-check/lib /Users/kane/sources/p4/other/qmail-checkpassword/
lib /Users/kane/sources/p4/other/module-load-conditional/lib /Users/kane/sources/p4/
other/term-ui/lib /Users/kane/sources/p4/other/ipc-cmd/lib /Users/kane/sources/p4/
other/config-auto/lib /Users/kane/sources/p4/other/object-accessor/lib/ /opt/lib/perl5/
5.8.3/darwin-2level /opt/lib/perl5/5.8.3/darwin-2level /opt/lib/perl5/5.8.3 /opt/lib/perl5/
site_perl/5.8.3/darwin-2level /opt/lib/perl5/site_perl/5.8.3/darwin-2level /opt/lib/perl5/
site_perl/5.8.3 /opt/lib/perl5/site_perl/5.8.3/darwin-2level /opt/lib/perl5/site_perl/5.8.3 /
opt/lib/perl5/site_perl . /opt/lib/perl5/5.8.3/darwin-2level /opt/lib/perl5/5.8.3 /opt/lib/
perl5/site_perl/5.8.3/darwin-2level /opt/lib/perl5/site_perl/5.8.3 /opt/lib/perl5/site_perl .)
at t/02_api.t line 31.
BEGIN failed--compilation aborted at t/02_api.t line 31.
# Looks like your test died before it could output anything.
t/02_api................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2116
Failed 2116/2116 tests, 0.00% okay
t/03_empiric............ok
t/04_element............^C
[kane@coke ~...build/PPI-0.906]$