summaryrefslogtreecommitdiff
path: root/t/op/misc.t
diff options
context:
space:
mode:
authorCharles Lane <lane@DUPHY4.Physics.Drexel.Edu>2001-01-09 02:53:55 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-09 15:21:38 +0000
commited6b3797850720f78128f390c7ef98bfdebafac0 (patch)
tree1e447d864d0fe2f1c8a739ecb57669142af26089 /t/op/misc.t
parent381d18bc28cdc85893deda4f9cdd3088b5465500 (diff)
downloadperl-ed6b3797850720f78128f390c7ef98bfdebafac0.tar.gz
make t/op/misc.t work on VMS
Message-Id: <010109075323.91c8f@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@8380
Diffstat (limited to 't/op/misc.t')
-rwxr-xr-xt/op/misc.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/op/misc.t b/t/op/misc.t
index 805a32bc9a..63ef2b2573 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: $!";