Skip to content

Commit

Permalink
avoid trying to gcov unincluded files
Browse files Browse the repository at this point in the history
some C files included with Imager are not included in every build
avoid the noise of trying to gcov them when they aren't
  • Loading branch information
tonycoz committed Nov 24, 2012
1 parent 25e6897 commit 778ca6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imcover.perl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
my %paths;
for my $filename (keys %$mani) {
next unless $filename =~ /\.(xs|c|im)$/;
(my $gcda = $filename) =~ s/\.\w+$/.gcda/;
next unless -f $gcda;
if ($filename =~ m!^(\w+)/(\w+\.\w+)$!) {
push @{$paths{$1}}, $2;
}
Expand Down

0 comments on commit 778ca6e

Please sign in to comment.