From: Graham Knop Date: Thu, 7 Nov 2013 18:38:42 +0000 (-0500) Subject: test that junk added to ROOT doesn't end up in active_paths X-Git-Tag: v2.000_000~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=commitdiff_plain;h=c3f6eefbefd51c0993675fb56a57f545a2c86bca;hp=fe125a69b50e05c8850ca382c5c5959bef73f8d2 test that junk added to ROOT doesn't end up in active_paths --- diff --git a/t/bad_variables.t b/t/bad_variables.t index d72ab48..6a8a139 100644 --- a/t/bad_variables.t +++ b/t/bad_variables.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 6; use File::Temp 'tempdir'; use Config; use local::lib (); @@ -30,6 +30,8 @@ is( 'dir1 should have been removed and added back in at the top' ); +ok((!grep { $_ eq $dir3 } local::lib->active_paths), 'junk dir added not included in active_paths'); + ok((grep { /\Q$dir1\E/ } @INC), 'new dir has been added to @INC'); ok((grep { /\Q$dir1\E/ } split /\Q$Config{path_sep}\E/, $ENV{PERL5LIB}), 'new dir has been added to PERL5LIB');