summaryrefslogtreecommitdiff
path: root/lib/open.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2004-08-17 01:27:00 +0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-09-20 08:10:47 +0000
commit7c0e976d40017a166598b7de52585069637d2764 (patch)
tree92777acc5948604435c3cf575914b6261c6d0988 /lib/open.t
parentbbf60fe61b01cdf81488be8df998a73605e38931 (diff)
downloadperl-7c0e976d40017a166598b7de52585069637d2764.tar.gz
[PATCH] encoding and open pragmas
Date: Mon, 16 Aug 2004 22:27:00 +0300 Message-ID: <41210A84.6060506@iki.fi> Subject: Re: [PATCH] encoding and open pragmas From: Jarkko Hietaniemi <jhi@iki.fi> Date: Tue, 17 Aug 2004 11:22:58 +0300 (EEST) Message-Id: <200408170822.i7H8MwUU016793@vipunen.hut.fi> p4raw-id: //depot/perl@23326
Diffstat (limited to 'lib/open.t')
-rw-r--r--lib/open.t15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/open.t b/lib/open.t
index 55b955bd0f..554798b9d6 100644
--- a/lib/open.t
+++ b/lib/open.t
@@ -7,7 +7,7 @@ BEGIN {
require Config; import Config;
}
-use Test::More tests => 17;
+use Test::More tests => 16;
# open::import expects 'open' as its first argument, but it clashes with open()
sub import {
@@ -43,17 +43,10 @@ eval q{ use warnings 'layer'; use open IN => ':macguffin' ; };
like( $warn, qr/Unknown PerlIO layer/,
'should warn about unknown layer with bad layer provided' );
-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' );
- like( ${^OPEN}, qr/^(:utf8)?:utf8\0/,
- 'should set a valid locale layer' );
-}
+# open :locale logic changed since open 1.04, new logic
+# difficult to test portably.
-# and see if it sets the magic variables appropriately
+# see if it sets the magic variables appropriately
import( 'IN', ':crlf' );
ok( $^H & $open::hint_bits,
'hint bits should be set in $^H after open import' );