Replies: 2 comments 3 replies
|
No. Not expected. Do you have a testcase which illustrates the issue? |
2 replies
$ ./bin/lcov -a count.info --branch
Combining tracefiles.
.. found 1 files to aggregate.
Reading tracefile count.info.
lcov: WARNING: (format) invalid characters removed from testname in tracefile count.info: 'int-parse-fail-demo'->'int_parse_fail_demo'
(use "lcov --ignore-errors format,format ..." to suppress this warning)
lcov: WARNING: (unsupported) Function begin/end line exclusions not supported with this version of GCC/gcov; require gcc/9 or newer: attempting to derive function end lines - see lcovrc man entry for 'derive_function_end_line'.
(use "lcov --ignore-errors unsupported,unsupported ..." to suppress this warning)
TN:int_parse_fail_demo
SF:/tmp/jenkins-lcov-int-fail-demo.c
FNL:0,1,2
FNA:0,2874063630,main
FNF:1
FNH:1
BRDA:1,0,0,2874063630
BRF:1
BRH:1
DA:1,2874063630
DA:2,1
LF:2
LH:2
end_of_record
Summary coverage rate:
source files: 1
lines.......: 100.0% (2 of 2 lines)
functions...: 100.0% (1 of 1 function)
branches....: 100.0% (1 of 1 branch)
Message summary:
2 warning messages:
format: 1
unsupported: 1
I don't see the error you see - and the warnings are self explanatory and innocuous. What version of update: actually: looking at your stacktrace, the message seems to be coming from |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
java.lang.NumberFormatException: For input string: "2874063630"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.parseInt(Integer.java:778)
at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.LcovParser.parseReport(LcovParser.java:78)
As a workaround, I have to take the info file and normalize it. I set the number of hits to 1 unless they were already 0.
All reactions