diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-09-26 22:17:42 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-09-26 22:17:42 -0700 |
commit | 804401eafe14239ae9d16234c83f1dd18faeb926 (patch) | |
tree | b58a2af3342bdfb9b7475b84f29c80cbf736e18c /t | |
parent | 2ccd21fcbb088ab4d4206f572aea3d94c9216a71 (diff) | |
download | perl-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.t | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 { |