Closed nomis closed 6 months ago
None of the geninfo settings work in config files, and it stopped working after 2.0:
ea9d0e7dc03808352c655d57fa9f6e5e526ce8df is the first bad commit
commit ea9d0e7dc03808352c655d57fa9f6e5e526ce8df
Author: Henry Cox <henry.cox@mediatek.com>
Date: Thu Feb 22 08:07:39 2024 -0500
Check for invalid or unknown options passed via "--rc key=value"
User expected to have some effect - or would not have passed the option.
Without this check, user may see some unexpected results that look a lot
like tool bugs (...we ignored some option).
The problem is here where there are two different copies of all of the options so that the ones in geninfo_rc_opts
are never used:
-if (!lcovutil::parseOptions(\%geninfo_rc_opts, \%geninfo_opts)) {
+if (!lcovutil::parseOptions(\%lcovutil::geninfo_rc_opts, \%geninfo_opts)) {
Closing now. I believe that this is fixed in the commit mentioned above.
If there is still a problem, please either reopen this issue or file a new one. Please include a testcase which illustrates the bug.
Thanks Henry
If
geninfo --gcov-tool ...
is used it sets the gcov tool to the specified value (which is a list with one entry).If
geninfo --config-file ...
or one of thelcovrc
files is used to setgeninfo_gcov_tool
it claims to append the value to the "list of gcov tools" but it appears to do nothing becausegeninfo
still has an empty array in@gcov_tool
: