4 if( $ENV{PERL_CORE} ) {
5 @INC = ('../lib', 'lib');
19 $Has_Test_Pod = eval 'use Test::Pod 0.95; 1';
22 chdir File::Spec->updir;
23 my $manifest = File::Spec->catfile('MANIFEST');
24 open(MANIFEST, $manifest) or die "Can't open $manifest: $!";
25 my @modules = map { m{^lib/(\S+)}; $1 }
26 grep { m{^lib/ExtUtils/\S*\.pm} } <MANIFEST>;
31 plan tests => scalar @modules * 2;
32 foreach my $file (@modules) {
33 # 5.8.0 has a bug about require alone in an eval. Thus the extra
35 eval q{ require($file); 1 };
36 is( $@, '', "require $file" );
39 skip "Test::Pod not installed", 1 unless $Has_Test_Pod;