diff options
author | gregor herrmann <gregoa@debian.org> | 2014-04-06 19:17:28 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2014-04-06 19:22:19 +0200 |
commit | 789452f45909370b1477ea79c5591938da3133cf (patch) | |
tree | 76262adbf6cb5e557495301fa893713a5006fbe4 /t/00-load.t | |
parent | 1b07c6349582c9ced8e95d0fd0950f552bc417b4 (diff) |
Imported Upstream version 1.112
Diffstat (limited to 't/00-load.t')
-rw-r--r-- | t/00-load.t | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/t/00-load.t b/t/00-load.t index 43061b9..a246465 100644 --- a/t/00-load.t +++ b/t/00-load.t @@ -4,13 +4,15 @@ use Test::More; use File::Find; my @modules; -find( sub { push @modules, $File::Find::name if /\.pm$/ }, 'blib/lib' ); +find( sub { push @modules, $File::Find::name if /\.pm$/ }, 'lib' ); plan tests => scalar @modules; -use_ok($_) - for reverse sort map { s!/!::!g; s/\.pm$//; s/^blib::lib:://; $_ } - @modules; - -diag("Tested Test::Database $Test::Database::VERSION, Perl $], $^X"); +@modules = reverse sort map { s!/!::!g; s/\.pm$//; s/^lib:://; $_ } @modules; +# load in isolation +local $ENV{PERL5LIB} = join $Config::Config{path_sep} || ';', @INC; +for my $module (@modules) { + `$^X -M$module -e1`; + is( $? >> 8, 0, "perl -M$module -e1" ); +} |