miniperl cannot handle layers.t.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 1 May 2003 09:52:52 +0000 (09:52 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 1 May 2003 09:52:52 +0000 (09:52 +0000)
p4raw-id: //depot/perl@19372

t/io/layers.t

index 8f70392..3060da5 100644 (file)
@@ -10,6 +10,11 @@ BEGIN {
        print "1..0 # Skip: not perlio\n";
        exit 0;
     }
+    eval 'use Encode';
+    if ($@ =~ /dynamic loading not available/) {
+        print "1..0 # miniperl cannot load Encode\n";
+       exit 0;
+    }
     # Makes testing easier.
     $ENV{PERLIO} = 'stdio' if exists $ENV{PERLIO} && $ENV{PERLIO} eq '';
     if (exists $ENV{PERLIO} && $ENV{PERLIO} !~ /^(stdio|perlio|mmap)$/) {