]> git.vpit.fr Git - perl/modules/VPIT-TestHelpers.git/commitdiff
Clean leftovers in %INC when the module could not be loaded
authorVincent Pit <vince@profvince.com>
Fri, 7 Sep 2012 11:31:45 +0000 (13:31 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 7 Sep 2012 11:31:45 +0000 (13:31 +0200)
lib/VPIT/TestHelpers.pm

index 18f2b175570ca4ca6c36faeab56d589c7b256dca..591adf2182fd90d3f57feb9c56e857e080fe65f3 100644 (file)
@@ -51,6 +51,8 @@ IMPORTER
   }
   diag "Using $pkg $ver";
  } else {
+  (my $file = "$pkg.pm") =~ s{::}{/}g;
+  delete $INC{$file};
   skip_all "$spec $desc";
  }
 }