Patch gcovr script - take 2

pull/304/head
VintagePC 2023-09-17 19:05:34 -04:00
parent 6340421f51
commit c60d562c8c
1 changed files with 3 additions and 1 deletions

View File

@ -632,7 +632,9 @@ def process_gcov_data(data_fname, covdata, source_fname, options):
elif tmp[0] == '=': elif tmp[0] == '=':
is_code_statement = True is_code_statement = True
uncovered_exceptional.add(lineno) uncovered_exceptional.add(lineno)
elif tmp[0] in "0123456789" and not segments[0].endswith("*"): elif tmp[0] in "0123456789" and segments[0].endswith("*"):
continue
elif tmp[0] in "0123456789":
is_code_statement = True is_code_statement = True
covered[lineno] = int(segments[0].strip()) covered[lineno] = int(segments[0].strip())
elif tmp.startswith('branch'): elif tmp.startswith('branch'):