File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -1263,12 +1263,13 @@ sub apply_rc_params($)
1263
1263
$set_value |= apply_config(\%rcHash , $config , \%new_opt_rc );
1264
1264
}
1265
1265
return $set_value ;
1266
- } elsif (defined ($ENV {" HOME" }) && (-r $ENV {" HOME" } . " /.lcovrc" )) {
1267
- $config = read_config($ENV {" HOME" } . " /.lcovrc" );
1268
- } elsif (-r " /etc/lcovrc" ) {
1269
- $config = read_config(" /etc/lcovrc" );
1270
- } elsif (-r " /usr/local/etc/lcovrc" ) {
1271
- $config = read_config(" /usr/local/etc/lcovrc" );
1266
+ } elsif (exists ($ENV {" HOME" }) &&
1267
+ -r File::Spec-> catfile($ENV {" HOME" }, ' .lcovrc' )) {
1268
+ $config = read_config(File::Spec-> catfile($ENV {" HOME" }, ' .lcovrc' ));
1269
+ } elsif (exists ($ENV {" LCOV_HOME" }) &&
1270
+ -r File::Spec-> catfile($ENV {" LCOV_HOME" }, ' etc' , ' lcovrc' )) {
1271
+ $config = read_config(
1272
+ File::Spec-> catfile($ENV {" LCOV_HOME" }, ' etc' , ' lcovrc' ));
1272
1273
}
1273
1274
1274
1275
if ($config ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ code coverage tool (see
13
13
.br
14
14
15
15
The system\- wide configuration file is located at
16
- .IR /etc/lcovrc .
16
+ .IR $LCOV_HOME/etc/lcovrc .
17
+ This is typically either
18
+ .IR /etc/lcovrc
19
+ or
20
+ .IR /usr/local/etc/lcovrc
21
+ but may be wherever you have installed the lcov package.
17
22
To change settings for a single user, place a customized copy of this file at
18
23
location
19
24
.IR ~/.lcovrc .
@@ -2618,7 +2623,7 @@ Default is '0': case sensitive matching.
2618
2623
.SH FILES
2619
2624
2620
2625
.TP
2621
- .I /etc/lcovrc
2626
+ .I $LCOV_HOME /etc/lcovrc
2622
2627
The system\- wide
2623
2628
.B lcov
2624
2629
configuration file.
You can’t perform that action at this time.
0 commit comments