Skip to content

Commit 39e7323

Browse files
authored
Pass the --tempdir option from lcov to geninfo (#379)
lcov invokes geninfo but didn't provide it with the user's --tempdir option value (if specified); pass it down. Signed-off-by: Paul Smith <[email protected]>
1 parent 7959556 commit 39e7323

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/lcov

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,8 @@ sub lcov_geninfo(@)
916916
push(@param, "--mcdc") if $lcovutil::mcdc_coverage;
917917
push(@param, '--fail-under-lines', $lcovutil::fail_under_lines)
918918
if defined($lcovutil::fail_under_lines);
919-
919+
push(@param, '--tempdir', $lcovutil::tempdirname)
920+
if (defined($lcovutil::tempdirname));
920921
foreach my $listOpt (['--comment', \@lcovutil::comments],
921922
['--config-file', \@lcovutil::opt_config_files],
922923
['--rc', \@lcovutil::opt_rc],

lib/lcovutil.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ my (@rc_filter, @rc_ignore, @rc_exclude_patterns,
10711071
$rc_no_branch_coverage, $rc_no_func_coverage, $rc_no_checksum,
10721072
$version);
10731073
my $quiet = 0;
1074-
my $tempdirname;
1074+
our $tempdirname;
10751075

10761076
# these options used only by lcov - but moved here so that we can
10771077
# share arg parsing

0 commit comments

Comments
 (0)