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

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

Thread Previous
John E. Malmberg
March 19, 2007 03:33
Re: [PATCH] perl5db.t: skip test when /dev/tty is not available
Message ID:
Rafael Garcia-Suarez wrote:
> On 17/03/07, Alexey Tourbin <> 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.

Personal Opinion Only
Now employed, but bootstrapping a new house.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About