linux-test-project/lcov

lcov fails with "(inconsistent) mismatched end line" for googletest code

chaiken opened this issue · 1 comments

At https://github.com/chaiken/Cpp-exercises is much simple C++ code with googletest tests. The issue reported at #192 (comment) persists. "--ignore mismatch" does not suppress it.

$ ../lcov/bin/lcov --version
lcov: LCOV version 2.1-14-g829d194

$ ../lcov/bin/lcov --rc geninfo_unexecuted_blocks=1 --ignore mismatch -branch-coverage -base-directory . -directory . -capture -o template_vector_lib_test-coverage.info
Capturing coverage data from .
geninfo cmd: '/home/alison/gitsrc/lcov/bin/geninfo . --output-filename template_vector_lib_test-coverage.info --base-directory . --ignore-errors mismatch --rc geninfo_unexecuted_blocks=1 --branch-coverage'
Found gcov version: 13.3.0
Using intermediate gcov format
Recording 'internal' directories:
        /home/alison/gitsrc/Cpp-Exercises
Writing temporary data to /tmp/geninfo_datFETK
Scanning . for .gcda files ...
Found 7 data files in .
using: chunkSize: 1, nchunks:7, intervalLength:0
geninfo: ERROR: (inconsistent) mismatched end line for _ZN13template_vect7testing40TemplateVectorTest_ZeroLengthVector_Test8TestBodyEv at /home/alison/gitsrc/Cpp-Exercises/template_vector_lib_test.cc:23: 23 -> 36
        (use "geninfo --ignore-errors inconsistent ..." to bypass this error)
Message summary:
  1 error message:
    inconsistent: 1

Ah, I see that adding "--ignore-errors inconsistent" as well does result in success! Sorry, I could have sworn I tried that exact combination before. Sorry to annoy you for no reason.