This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make lib/open.t under -Duseperlio
authorNicholas Clark <nick@ccl4.org>
Mon, 16 Jun 2008 13:38:45 +0000 (13:38 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 16 Jun 2008 13:38:45 +0000 (13:38 +0000)
p4raw-id: //depot/perl@34060

lib/open.t

index 1c4a99e..4ce7371 100644 (file)
@@ -180,14 +180,12 @@ EOE
           "checking syswrite() output on :utf8 streams by reading it back in");
     }
 }
+SKIP: {
+    skip("no perlio", 2) unless (find PerlIO::Layer 'perlio');
 
-{
     eval q[use Encode::Alias;use open ":std", ":locale"];
     is($@, '', 'can use :std and :locale');
-}
 
-SKIP: {
-    skip("no perlio", 1) unless (find PerlIO::Layer 'perlio');
     use open IN => ':non-existent';
     eval {
        require Symbol; # Anything that exists but we havn't loaded