develooper Front page | perl.perl5.porters | Postings from March 2007

Re: [PATCH] perl5db.t: skip test when /dev/tty is not available

Thread Previous
From:
John E. Malmberg
Date:
March 19, 2007 03:33
Subject:
Re: [PATCH] perl5db.t: skip test when /dev/tty is not available
Message ID:
45FD5861.8090303@qsl.net
Rafael Garcia-Suarez wrote:
> On 17/03/07, Alexey Tourbin <at@altlinux.ru> wrote:
>> I think that the easiest way to address the prolem is, in perl5db.t,
>> to check for /dev/tty instead of /dev/null.
> 
> I actually added that condition (as change #30609), thanks.

This would also appear to cause the test to be skipped on VMS.

VMS does not currently have a /dev/tty, which is why the code assumes 
SYS\$COMMAND instead.

That probably could be done better on VMS, but it will be a little while 
before I have enough tuits free to look at it.

The impact of skipping this test on VMS is minor.  The test is failing 
right now anyway.  As near as I can determine, the VMS specific code is 
preventing the debugger from accepting a script for input instead of the 
command terminal.

I would also advise any VMS maintainers not to assume that testing for 
/dev/tty will fail on VMS.  Even on older releases, directory structures 
and logical names can cause a false positive.  And /dev/tty may start 
working in a future release of VMS.

-John
wb8tyw@qsl.net
Personal Opinion Only
Now employed, but bootstrapping a new house.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About