]> sjero.net Git - wget/blobdiff - tests/WgetTest.pm.in
Updated config.guess, config.sub, install.sh.
[wget] / tests / WgetTest.pm.in
index d0a62175cca9b0f08eb10478300b6d6142646780..5cd6769b8c0686d395c230ac9449fe341c7cca69 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 # WARNING!
 # WgetTest.pm is a generated file! Do not edit! Edit WgetTest.pm.in
 # instead.
@@ -8,6 +6,7 @@ package WgetTest;
 $VERSION = 0.01;
 
 use strict;
+use warnings;
 
 use Cwd;
 use File::Path;
@@ -154,7 +153,7 @@ sub _cleanup {
     my $self = shift;
 
     chdir ($self->{_workdir});
-    File::Path::rmtree ($self->{_name});
+    File::Path::rmtree ($self->{_name}) unless $ENV{WGET_TEST_NO_CLEANUP};
 }