summaryrefslogtreecommitdiff
path: root/lib/File
diff options
context:
space:
mode:
authorKen Williams <ken@mathforum.org>2003-08-21 17:47:51 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-08-26 18:40:50 +0000
commitd7f1a795527ad4875d71a2e977851f754d4b7b3f (patch)
treeabbd7a61d2953bd415062d8e6c79a9431b6db728 /lib/File
parentf94e5462ce9233ce82cf4bd799d5d17cf8660e86 (diff)
downloadperl-d7f1a795527ad4875d71a2e977851f754d4b7b3f.tar.gz
minor File::Spec testing cleanup
Message-Id: <67C30B63-D453-11D7-8495-003065F6D85A@mathforum.org> p4raw-id: //depot/perl@20908
Diffstat (limited to 'lib/File')
-rw-r--r--lib/File/Spec/t/rel2abs2rel.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/File/Spec/t/rel2abs2rel.t b/lib/File/Spec/t/rel2abs2rel.t
index 79119e01e9..7af1042c0b 100644
--- a/lib/File/Spec/t/rel2abs2rel.t
+++ b/lib/File/Spec/t/rel2abs2rel.t
@@ -9,6 +9,7 @@ use Test::More (-x $^X
);
BEGIN { # Set up a tiny script file
+ local *F;
open(F, ">rel2abs2rel$$.pl")
or die "Can't open rel2abs2rel$$.pl file for script -- $!\n";
print F qq(print "ok\\n"\n);
@@ -43,6 +44,8 @@ sub sayok{
system($perl, "rel2abs2rel$$.pl");
open(STDOUT, '>&STDOUTDUP');
close(STDOUTDUP);
+
+ local *F;
open(F, "rel2abs2rel$$.tmp");
local $/ = undef;
my $output = <F>;