X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fopen.t;h=4ce7371a164d4251fefa2672bd547f848b0d632f;hb=47a7661deb880b9c5c3ea4517c4908096fdff41f;hp=9c36e1a5c85d76e988235fec3a877b8d9f93c863;hpb=44cc5a7ce5ecf7139ce1fe67cd93e7f75d353329;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/open.t b/lib/open.t index 9c36e1a..4ce7371 100644 --- a/lib/open.t +++ b/lib/open.t @@ -7,7 +7,7 @@ BEGIN { require Config; import Config; } -use Test::More tests => 22; +use Test::More tests => 23; # open::import expects 'open' as its first argument, but it clashes with open() sub import { @@ -180,9 +180,12 @@ EOE "checking syswrite() output on :utf8 streams by reading it back in"); } } - SKIP: { - skip("no perlio", 1) unless (find PerlIO::Layer 'perlio'); + skip("no perlio", 2) unless (find PerlIO::Layer 'perlio'); + + eval q[use Encode::Alias;use open ":std", ":locale"]; + is($@, '', 'can use :std and :locale'); + use open IN => ':non-existent'; eval { require Symbol; # Anything that exists but we havn't loaded