summaryrefslogtreecommitdiff
path: root/lib/subs.t
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2008-09-16 12:35:11 -0400
committerNicholas Clark <nick@ccl4.org>2008-09-16 21:04:14 +0000
commitf89542f789fc8ac88f7cd7e93bb8d9cd6228182b (patch)
treec00204c6fe3efbdea898f7de830e86f22bfc2ae0 /lib/subs.t
parent3affb40daa9f27a344173c8cba505eb967c64b0f (diff)
downloadperl-f89542f789fc8ac88f7cd7e93bb8d9cd6228182b.tar.gz
Don't reuse temp files in tests
From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510809161335j73312da3v90fa6ef0cb8ac7c@mail.gmail.com> Date: Tue, 16 Sep 2008 16:35:11 -0400 p4raw-id: //depot/perl@34377
Diffstat (limited to 'lib/subs.t')
-rw-r--r--lib/subs.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/subs.t b/lib/subs.t
index 7952c20a6c..b1999b2053 100644
--- a/lib/subs.t
+++ b/lib/subs.t
@@ -16,9 +16,7 @@ my $Is_VMS = $^O eq 'VMS';
my $Is_MSWin32 = $^O eq 'MSWin32';
my $Is_NetWare = $^O eq 'NetWare';
my $Is_MacOS = $^O eq 'MacOS';
-my $tmpfile = tempfile();
my $i = 0 ;
-END { if ($tmpfile) { 1 while unlink $tmpfile} }
for (@prgs){
my $switch = "";
@@ -44,6 +42,7 @@ for (@prgs){
shift @files ;
$prog = shift @files ;
}
+ my $tmpfile = tempfile();
open TEST, ">$tmpfile";
print TEST $prog,"\n";
close TEST;