Skip to content

Commit f83688f

Browse files
Peter Oberparleiteroberpar
authored andcommitted
geninfo: fix --no-external not working with --initial
When running lcov --capture --initial together with --no-external. the --no-external has no effect. Fix this by applying the external filtering also for graph files. Reported-by: [email protected]
1 parent 6a8a678 commit f83688f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bin/geninfo

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if( $^O eq "msys" )
6161
}
6262

6363
# Constants
64-
our $lcov_version = 'LCOV version 1.11 pre (CVS $Revision: 1.121 $)';
64+
our $lcov_version = 'LCOV version 1.11 pre (CVS $Revision: 1.122 $)';
6565
our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php";
6666
our $gcov_tool = "gcov";
6767
our $tool_name = basename($0);
@@ -2276,6 +2276,15 @@ sub process_graphfile($$)
22762276
my $line;
22772277
my $linedata;
22782278

2279+
# Skip external files if requested
2280+
if (!$opt_external) {
2281+
if (is_external($filename)) {
2282+
info(" ignoring data for external file ".
2283+
"$filename\n");
2284+
next;
2285+
}
2286+
}
2287+
22792288
print(INFO_HANDLE "SF:$filename\n");
22802289

22812290
if (defined($funcdata) && $func_coverage) {

0 commit comments

Comments
 (0)