3 use Test::More tests => 2;
5 use File::Temp qw(tempdir);
8 my $dir = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP => 1);
11 local::lib->import($dir);
12 local::lib->import($dir);
16 map { $inc{$_}++ } @INC;
17 map { $perl5lib{$_} } split /:/, $ENV{PERL5LIB};
18 ok ! grep({ $inc{$_} > 1 } keys %inc), '@INC entries not duplicated';
19 ok ! grep({ $perl5lib{$_} > 1 } keys %perl5lib), 'ENV{PERL5LIB} entries not duplicated';