Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chaiken opened this issue Jul 4, 2024 · 1 comment
Closed

Comments

@chaiken
Copy link

chaiken commented Jul 4, 2024

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
@chaiken
Copy link
Author

chaiken commented Jul 4, 2024

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.

@chaiken chaiken closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant