Make Archive::Tar clean up its test files on Win32
authorSteve Hay <SteveHay@planit.com>
Fri, 1 Jul 2005 16:33:42 +0000 (16:33 +0000)
committerSteve Hay <SteveHay@planit.com>
Fri, 1 Jul 2005 16:33:42 +0000 (16:33 +0000)
(The old "can't delete an open file on Win32" chestnut again)

p4raw-id: //depot/perl@25043

lib/Archive/Tar.pm
lib/Archive/Tar/t/02_methods.t

index ecb6aba..f8e817b 100644 (file)
@@ -14,7 +14,7 @@ use vars qw[$DEBUG $error $VERSION $WARN $FOLLOW_SYMLINK $CHOWN $CHMOD
 $DEBUG              = 0;
 $WARN               = 1;
 $FOLLOW_SYMLINK     = 0;
-$VERSION            = "1.24_01";
+$VERSION            = "1.24_02";
 $CHOWN              = 1;
 $CHMOD              = 1;
 $DO_NOT_USE_PREFIX  = 0;
index 82f3777..3721025 100644 (file)
@@ -680,6 +680,7 @@ sub check_tar_extract {
         like( $content, qr/$econtent/,
                                     "   Contents OK" );
 
+        close $fh;
         unlink $path unless $NO_UNLINK;
 
         ### alternate extract path tests