From ed6b3797850720f78128f390c7ef98bfdebafac0 Mon Sep 17 00:00:00 2001 From: Charles Lane Date: Tue, 9 Jan 2001 02:53:55 -0500 Subject: [PATCH] make t/op/misc.t work on VMS Message-Id: <010109075323.91c8f@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@8380 --- t/op/misc.t | 5 ++++- vms/test.com | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/t/op/misc.t b/t/op/misc.t index 805a32b..63ef2b2 100755 --- a/t/op/misc.t +++ b/t/op/misc.t @@ -15,7 +15,7 @@ print "1..", scalar @prgs, "\n"; $tmpfile = "misctmp000"; 1 while -f ++$tmpfile; -END { unlink $tmpfile if $tmpfile; } +END { while($tmpfile && unlink $tmpfile){} } $CAT = (($^O eq 'MSWin32') ? '.\perl -e "print <>"' : 'cat'); @@ -26,6 +26,9 @@ for (@prgs){ } my($prog,$expected) = split(/\nEXPECT\n/, $_); open TEST, ">$tmpfile" or die "Cannot open $tmpfile: $!"; + $prog =~ s#/dev/null#NL:# if $^O eq 'VMS'; + $prog =~ s#if \(-e _ and -f _ and -r _\)#if (-e _ and -f _)# if $^O eq 'VMS'; # VMS file locking + print TEST $prog, "\n"; close TEST or die "Cannot close $tmpfile: $!"; diff --git a/vms/test.com b/vms/test.com index d915340..8b93f5b 100644 --- a/vms/test.com +++ b/vms/test.com @@ -126,7 +126,7 @@ use Config; # insists on stat()ing a file descriptor before it'll use it. push(@libexcl,'io_xs.t') if $Config{'vms_cc_type'} ne 'decc'; -@opexcl=('die_exit.t','exec.t','fork.t','glob.t','groups.t','magic.t','misc.t','stat.t'); +@opexcl=('die_exit.t','exec.t','fork.t','glob.t','groups.t','magic.t','stat.t'); @exclist=(@compexcl,@ioexcl,@libexcl,@opexcl); foreach $file (@exclist) { $skip{$file}++; } -- 2.7.4