summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/h2xs.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/h2xs.t b/lib/h2xs.t
index e6c75c091d..a59afa2f58 100644
--- a/lib/h2xs.t
+++ b/lib/h2xs.t
@@ -57,6 +57,9 @@ my $name = 'h2xst';
my $header = "$name.h";
my $thisversion = sprintf "%vd", $^V;
+# If this test has failed previously a copy may be left.
+rmtree($name);
+
my @tests = (
"-f -n $name", $], <<"EOXSFILES",
Defaulting to backwards compatibility with perl $thisversion