summaryrefslogtreecommitdiff
path: root/lib/FileCache
diff options
context:
space:
mode:
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;
}