X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FFileCache.t;h=1d91d210ab8c2400fc17f154350c3cefe5cbe67c;hb=3894def1afb359ac1e2f71100c2120898927583e;hp=87bfd951d947a0e4162921cb8a7be8d81e5e6eb0;hpb=5f682c053747030c533c13711625f2209c5ae077;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/FileCache.t b/lib/FileCache.t index 87bfd95..1d91d21 100755 --- a/lib/FileCache.t +++ b/lib/FileCache.t @@ -24,11 +24,11 @@ my @files = qw(foo bar baz quux); my @cat; for my $path ( @files ){ print $path "$path 2\n"; - close($path); + close($path); open($path, $path); <$path>; push @cat, <$path>; - close($path); + close($path); } print "not " if (grep {/foo|bar/} @cat) && ! (grep {/baz|quux/} @cat); print "ok 2\n" ; @@ -57,6 +57,7 @@ my @files = qw(foo bar baz quux); cacheout '<', "foo"; print "not " unless eq "foo 2\n"; print "ok 4\n"; + close(foo); } {# Test 5: that close is overridden properly @@ -68,6 +69,7 @@ my @files = qw(foo bar baz quux); seek($_, 0, 0); print "not " unless <$_> eq "$_\n"; print "ok 5\n"; + close($_); } q( @@ -82,6 +84,7 @@ q( seek($_, 0, 0); print "not " unless <$_> eq "$_\n"; print "ok 5\n"; + close($_); } );