summaryrefslogtreecommitdiff
path: root/lib/FileCache
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-01-10 11:53:10 +0000
committerSteve Hay <SteveHay@planit.com>2005-01-10 11:53:10 +0000
commit846e3505506e5ca6188404fe694911fd9e543b20 (patch)
treec4de95c09b6c5e363ba7499bfc9ba69abe8a8001 /lib/FileCache
parent6c4b87ea2cf1b07b221a48a59b468e8aae9a0981 (diff)
downloadperl-846e3505506e5ca6188404fe694911fd9e543b20.tar.gz
Need to close files before unlinking them on Win32
(Various files created by test programs are left behind otherwise, and distclean doesn't clean them up) p4raw-id: //depot/perl@23778
Diffstat (limited to 'lib/FileCache')
-rw-r--r--lib/FileCache/t/01open.t1
-rw-r--r--lib/FileCache/t/04twoarg.t1
-rw-r--r--lib/FileCache/t/07noimport.t1
3 files changed, 3 insertions, 0 deletions
diff --git a/lib/FileCache/t/01open.t b/lib/FileCache/t/01open.t
index fa7f5f0e08..75da3b28d4 100644
--- a/lib/FileCache/t/01open.t
+++ b/lib/FileCache/t/01open.t
@@ -20,6 +20,7 @@ print "1..1\n";
for my $path ( @files ){
cacheout $path;
print $path "$path 1\n";
+ close $path;
}
print "not " unless scalar map({ -f } @files) == scalar @files;
print "ok 1\n";
diff --git a/lib/FileCache/t/04twoarg.t b/lib/FileCache/t/04twoarg.t
index a2a70be2b6..66da9719a2 100644
--- a/lib/FileCache/t/04twoarg.t
+++ b/lib/FileCache/t/04twoarg.t
@@ -21,4 +21,5 @@ print "1..1\n";
seek(foo, 0, 0);
print 'not ' unless <foo> eq "foo 44\n";
print "ok 1\n";
+ close foo;
}
diff --git a/lib/FileCache/t/07noimport.t b/lib/FileCache/t/07noimport.t
index 0f19ada68d..d2f926ce5c 100644
--- a/lib/FileCache/t/07noimport.t
+++ b/lib/FileCache/t/07noimport.t
@@ -22,4 +22,5 @@ plan( tests => 1 );
FileCache::cacheout("<", $file);
::ok( <$file> eq "bar" );
+ close $file;
}