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 {
is( $^H{'open_IO'}, 'crlf', 'should record last layer set in %^H' );
SKIP: {
- skip("no perlio, no :utf8", 4) unless (find PerlIO::Layer 'perlio');
+ skip("no perlio, no :utf8", 12) unless (find PerlIO::Layer 'perlio');
eval <<EOE;
use open ':utf8';
"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