[Encode] UTF-7 Support
[p5sagit/p5-mst-13.2.git] / lib / open.t
index 905308d..68b3eca 100644 (file)
@@ -171,12 +171,13 @@ EOE
        "checking syswrite() output on :utf8 streams by reading it back in");
 }
 
-{
+SKIP: {
+    skip("no perlio", 1) unless (find PerlIO::Layer 'perlio');
     use open IN => ':non-existent';
     eval {
-       require Anything;
+       require Symbol; # Anything that exists but we havn't loaded
     };
-    like($@, qr/Recursive call/i,
+    like($@, qr/Can't locate Symbol|Recursive call/i,
         "test for an endless loop in PerlIO_find_layer");
 }