Craig A. Berry [Sat, 19 Dec 2009 15:33:32 +0000 (09:33 -0600)]
-t correctly does not report true in this case, but the test was
assuming it would. Since there is no equivalent to F$MODE() in
Perl, rely on the fact that in batch TT is a logical name pointing
to _NLA0:.
SKIP: {
open(my $tty, "<", $dev_tty)
or skip("Can't open terminal '$dev_tty': $!");
+ skip("Probably batch mode since TT is _NLA0:")
+ if $^O eq 'VMS' && lc(VMS::Filespec::vmspath('TT')) eq '_nla0:';
ok(-t $tty);
}
SKIP: {