Skip to content

Commit 6a8a678

Browse files
Peter Oberparleiteroberpar
authored andcommitted
lcov: fix --config-file not being passed to geninfo
Calling lcov to capture coverage data while specifying --config-file will result in the configuration directives of that file not being used during data collection. Fix this by ensuring that --config-file is passed on to geninfo. Reported-by: [email protected]
1 parent c3be5b6 commit 6a8a678

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/lcov

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use Cwd qw /abs_path getcwd/;
7171

7272

7373
# Global constants
74-
our $lcov_version = 'LCOV version 1.11 pre (CVS $Revision: 1.96 $)';
74+
our $lcov_version = 'LCOV version 1.11 pre (CVS $Revision: 1.97 $)';
7575
our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php";
7676
our $tool_name = basename($0);
7777

@@ -889,6 +889,9 @@ sub lcov_geninfo(@)
889889
@param = (@param, "--rc", "$key=".$opt_rc{$key});
890890
}
891891
}
892+
if (defined($opt_config_file)) {
893+
@param = (@param, "--config-file", $opt_config_file);
894+
}
892895

893896
system(@param) and exit($? >> 8);
894897
}

0 commit comments

Comments
 (0)