summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-09-26 22:17:42 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-09-26 22:17:42 -0700
commit804401eafe14239ae9d16234c83f1dd18faeb926 (patch)
treeb58a2af3342bdfb9b7475b84f29c80cbf736e18c /t
parent2ccd21fcbb088ab4d4206f572aea3d94c9216a71 (diff)
downloadperl-804401eafe14239ae9d16234c83f1dd18faeb926.tar.gz
Make gv.t pass on systems that do not support -T $glob with stdio
Diffstat (limited to 't')
-rw-r--r--t/op/gv.t13
1 files changed, 10 insertions, 3 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index 21f0d525df..32afdff69b 100644
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -759,9 +759,16 @@ EOF
ok defined -t $_, 'PVLV: -t does not stringify';
# neither should -T
- open my $quile, "<", 'test.pl';
- $_ = *$quile;
- ok -T $_, "PVLV: -T does not stringify";
+ # but some systems don’t support this on file handles
+ my $pass;
+ ok
+ eval {
+ open my $quile, "<", 'test.pl';
+ $_ = *$quile;
+ $pass = -T $_;
+ 1
+ } ? $pass : $@ =~ /not implemented on filehandles/,
+ "PVLV: -T does not stringify";
# Unopened file handle
{