This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: debugger 'R'estart and open database connections
[perl5.git] / lib / open.t
index 3f0fdf2..55b955b 100644 (file)
@@ -45,6 +45,7 @@ like( $warn, qr/Unknown PerlIO layer/,
 
 SKIP: {
     skip("no perlio, no :utf8", 1) unless (find PerlIO::Layer 'perlio');
+    skip("no Encode for locale layer", 1) unless eval { require Encode }; 
     # now load a real-looking locale
     $ENV{LC_ALL} = ' .utf8';
     import( 'IN', 'locale' );
@@ -175,9 +176,9 @@ 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");
 }