Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6051579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:50:04+00:00 2026-05-23T07:50:04+00:00

I am using lcov and genhtml to generate code coverage reports. With the following

  • 0

I am using lcov and genhtml to generate code coverage reports. With the following directory structure, I am able to get the code coverage for the source files located in the tests/ directory, but am unable to get code coverage for the my_file.c file in my src/ directory.

src/
   my_file.c
   my_file.h
tests/
   AllTests.c
   CuTest.c
   CuTest.h
   my_file_tests.c

   objects/
       AllTests.gcda
       AllTests.gcno
       AllTests.o
       CuTest.gcda
       CuTest.gcno
       CuTest.o
       my_file.gcda
       my_file.gcno
       my_file.o
       my_file_tests.gcda
       my_file_tests.gcno
       my_file_tests.o

Invoking the lcov command from the tests directory:

lcov -b . --directory objects/ -c -o ./coverage/app.info

Capturing coverage data from objects/
Found gcov version: 4.4.3
Scanning objects/ for .gcda files ...
Found 4 data files in objects/
Processing objects/AllTests.gcda
Processing objects/my_file_test.gcda
Processing objects/CuTest.gcda
Processing objects/my_file.gcda
geninfo: WARNING: gcov did not create any files for /home/me/workspace/project/tests/objects/my_file.gcda!
Finished .info-file creation
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:50:04+00:00Added an answer on May 23, 2026 at 7:50 am

    Upgrading from lcov 1.7 to 1.9 fixed this issue for me. Version 1.9 is available from http://ltp.sourceforge.net/coverage/lcov.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently started using lcov to visualize my code coverage. It's a great tool.
I am generating test code coverage using lcov (a graphical gcov tool extension). The
I measure coverage for my code using gcov library and I would like to
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
Using Python, I'm trying to rename a series of .txt files in a directory
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I have the same source files (C and Obj-C) being compiled into two targets:
I'm trying to run genhtml using perl.exe from Cygwin in Windows. I have installed
I am using the PDO Database Abstraction library to make sure my code is
Using the following as an example (with $db being a previously created database connection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.