Skip to content

Commit 3241c5a

Browse files
committed
gcov: accommodate the execution_count format change in GCC 8.1
The format of gcov's execution_count has been extended to indicate any unexecuted blocks in a single line, with a following '*': gcc-mirror/gcc@3cf7fdd This confuses cpp-coveralls and leads to a parsing error: Traceback (most recent call last): [...] coverage.append(int(cov_num)) ValueError: invalid literal for int() with base 10: '2*'
1 parent d030c29 commit 3241c5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp_coveralls/coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def parse_gcov_file(args, fobj, filename):
285285
# error.
286286
coverage.append(0)
287287
else:
288-
coverage.append(int(cov_num))
288+
coverage.append(int(cov_num.rstrip('*')))
289289
return coverage
290290

291291
def parse_lcov_file_info(args, filepath, line_iter, line_coverage_re, file_end_string):

0 commit comments

Comments
 (0)