X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fopen.t;h=55b955bd0fc861d7f8502293d5a37cd212da24b3;hb=14be35aaf1e66d9ee3b0b434256386e605d6024d;hp=905308dabb9962f6f8f88e476d457976ccc76e5c;hpb=d7a09b413c09654b842604d673ae0943eb928a18;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/open.t b/lib/open.t index 905308d..55b955b 100644 --- a/lib/open.t +++ b/lib/open.t @@ -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' ); @@ -171,12 +172,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"); }