Stop lib/h2xs.t failing needlessly if it failed to clear up behind
Nicholas Clark [Sat, 5 Feb 2005 22:02:50 +0000 (22:02 +0000)]
itself on a previous run.

p4raw-id: //depot/perl@23942

lib/h2xs.t

index e6c75c0..a59afa2 100644 (file)
@@ -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