Author: kwilliams
Date: Mon Nov 27 18:39:42 2006
New Revision: 8111

Modified:
   Module-Build/trunk/Changes
   Module-Build/trunk/lib/Module/Build/Base.pm

Log:
clear cover_db if .t files change

Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes  (original)
+++ Module-Build/trunk/Changes  Mon Nov 27 18:39:42 2006
@@ -2,6 +2,10 @@
 
 0.2806
 
+ - When running the 'testcover' action, do "cover --delete" if any of
+   the test files have changed (we already did so if any of the code
+   under test has changed). [Suggested by Chris Dolan, RT #23584]
+
  - Fixed a broken link in the documentation about PREFIX. [Spotted by
    David Steinbrunner]
 

Modified: Module-Build/trunk/lib/Module/Build/Base.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Base.pm (original)
+++ Module-Build/trunk/lib/Module/Build/Base.pm Mon Nov 27 18:39:42 2006
@@ -2111,7 +2111,8 @@
     my $cover_files = $self->rscan_dir('cover_db', sub {-f $_ and not 
/\.html$/});
     
     $self->do_system(qw(cover -delete))
-      unless $self->up_to_date($pm_files, $cover_files);
+      unless $self->up_to_date($pm_files,         $cover_files)
+         && $self->up_to_date($self->test_files, $cover_files);
   }
 
   local $Test::Harness::switches    = 

Reply via email to