X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Flib.t;h=c137a3fa065385962969b0bc2f8ad78669b8f943;hb=97a504ba76c612b4a75b812be186d7ed5f1593ef;hp=41280eee398a823b1002d30af563a59cd19a19c8;hpb=d5201bd266fe42b2df8b480183c08be291a1ad06;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/lib.t b/lib/lib.t index 41280ee..c137a3f 100644 --- a/lib/lib.t +++ b/lib/lib.t @@ -6,7 +6,7 @@ BEGIN { @OrigINC = @INC; } -use Test::More tests => 12; +use Test::More tests => 13; use Config; use File::Spec; use File::Path; @@ -81,6 +81,9 @@ BEGIN { no lib $Lib_Dir; +unlike( do { eval 'use lib $Config{installsitelib};'; $@ || '' }, + qr/::Config is read-only/, 'lib handles readonly stuff' ); + BEGIN { is( grep(/stuff/, @INC), 0, 'no lib' ); ok( !do 'Yup.pm', ' do() effected' );