summaryrefslogtreecommitdiff
path: root/lib/lib.t
diff options
context:
space:
mode:
authorAnton Berezin <tobez@tobez.org>2002-08-21 01:44:25 +0200
committerhv <hv@crypt.org>2002-08-25 14:02:47 +0000
commit57797241ccfef1581e6f5bbaa0c50d7faa89b290 (patch)
tree657be6d64e2f58126afde0a9ae42596157720e4f /lib/lib.t
parente440ea1e946b901317d852cffa88cecef3b7877f (diff)
downloadperl-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.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lib.t b/lib/lib.t
index 41280eee39..c137a3fa06 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' );