diff options
author | Anton Berezin <tobez@tobez.org> | 2002-08-21 01:44:25 +0200 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-08-25 14:02:47 +0000 |
commit | 57797241ccfef1581e6f5bbaa0c50d7faa89b290 (patch) | |
tree | 657be6d64e2f58126afde0a9ae42596157720e4f /lib/lib.t | |
parent | e440ea1e946b901317d852cffa88cecef3b7877f (diff) | |
download | perl-57797241ccfef1581e6f5bbaa0c50d7faa89b290.tar.gz |
fix lib.pm's import() to accept readonly parameters
Message-ID: <20020820214425.GG16178@heechee.tobez.org>
p4raw-id: //depot/perl@17768
Diffstat (limited to 'lib/lib.t')
-rw-r--r-- | lib/lib.t | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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' ); |