summaryrefslogtreecommitdiff
path: root/lib/h2xs.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/h2xs.t')
-rw-r--r--lib/h2xs.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/h2xs.t b/lib/h2xs.t
index d10ce75c1c..25502dadd1 100644
--- a/lib/h2xs.t
+++ b/lib/h2xs.t
@@ -72,7 +72,7 @@ my $thisversion = sprintf "%vd", $^V;
$thisversion =~ s/^v//;
# If this test has failed previously a copy may be left.
-rmtree($name);
+rmtree($name) if -e $name;
my @tests = (
"-f -n $name", $], <<"EOXSFILES",