X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fde-dup.t;h=7763319d52f18e56fac4b38158be373519b58dcc;hb=4cdf0914b54cadcbf7304200a3069250cc293d0e;hp=fdc325b53731f953c7601ff01eea0f72b02a6fe4;hpb=a9489cb038b7412d3f5c3f7c4cc18d2701b9a5e2;p=p5sagit%2Flocal-lib.git diff --git a/t/de-dup.t b/t/de-dup.t index fdc325b..7763319 100644 --- a/t/de-dup.t +++ b/t/de-dup.t @@ -4,7 +4,7 @@ use Test::More; use File::Temp qw(tempdir); use Cwd; -plan tests => 4; +plan tests => 2; my $dir = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP => 1); @@ -17,18 +17,5 @@ local::lib->import($dir); map { $inc{$_}++ } @INC; map { $perl5lib{$_} } split /:/, $ENV{PERL5LIB}; ok ! grep({ $inc{$_} > 1 } keys %inc), '@INC entries not duplicated'; -use Data::Dumper; -warn Dumper(\@INC); ok ! grep({ $perl5lib{$_} > 1 } keys %perl5lib), 'ENV{PERL5LIB} entries not duplicated'; } - -local::lib->import('--self-contained', $dir); - -{ - my (%inc, %perl5lib); - map { $inc{$_}++ } @INC; - map { $perl5lib{$_} } split /:/, $ENV{PERL5LIB}; - ok ! grep({ $inc{$_} > 1 } keys %inc), '@INC entries not duplicated (--self-contained)'; - ok ! grep({ $perl5lib{$_} > 1 } keys %perl5lib), 'ENV{PERL5LIB} entries not duplicated (--self-contained)'; -} -