summaryrefslogtreecommitdiff
path: root/t/io
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-10-05 17:57:20 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-06 13:01:14 -0700
commit2a0f5ef01a402461f9ced6933ebf587f84a75691 (patch)
tree4d09dce62fbdcf64e43730675c12b5ea7af516db /t/io
parent812df045b04bae646407fcb5794e129676975394 (diff)
downloadperl-2a0f5ef01a402461f9ced6933ebf587f84a75691.tar.gz
sv.c: Make most warnings utf8-clean
Diffstat (limited to 't/io')
-rw-r--r--t/io/open.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/io/open.t b/t/io/open.t
index dce0e239a2..806639187f 100644
--- a/t/io/open.t
+++ b/t/io/open.t
@@ -10,7 +10,7 @@ $| = 1;
use warnings;
use Config;
-plan tests => 115;
+plan tests => 119;
my $Perl = which_perl();
@@ -105,6 +105,15 @@ EOC
ok( !eval { open my $f, '<&', $afile; 1; }, '<& on a non-filehandle' );
like( $@, qr/Bad filehandle:\s+$afile/, ' right error' );
+ok( !eval { *some_glob = 1; open my $f, '<&', *some_glob; 1; }, '<& on a non-filehandle glob' );
+like( $@, qr/Bad filehandle:\s+some_glob/, ' right error' );
+
+{
+ use utf8;
+ use open qw( :utf8 :std );
+ ok( !eval { use utf8; *ǡfilḛ = 1; open my $f, '<&', *ǡfilḛ; 1; }, '<& on a non-filehandle glob' );
+ like( $@, qr/Bad filehandle:\s+ǡfilḛ/u, ' right error' );
+}
# local $file tests
{