From: Charles Lane Date: Tue, 9 Jan 2001 07:53:55 +0000 (-0500) Subject: make t/op/misc.t work on VMS X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ed6b3797850720f78128f390c7ef98bfdebafac0;p=p5sagit%2Fp5-mst-13.2.git make t/op/misc.t work on VMS Message-Id: <010109075323.91c8f@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@8380 --- 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}++; }