This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
allow indirection between less and its hints stash name
[perl5.git] / lib / open.t
index 4ce7371..1bf7dca 100644 (file)
@@ -3,7 +3,6 @@
 BEGIN {
        chdir 't' if -d 't';
        @INC = '../lib';
-       push @INC, "::lib:$MacPerl::Architecture:" if $^O eq 'MacOS';
        require Config; import Config;
 }
 
@@ -182,6 +181,7 @@ EOE
 }
 SKIP: {
     skip("no perlio", 2) unless (find PerlIO::Layer 'perlio');
+    skip("no Encode", 2) unless $Config{extensions} =~ m{\bEncode\b};
 
     eval q[use Encode::Alias;use open ":std", ":locale"];
     is($@, '', 'can use :std and :locale');