Missing certain GCDA files after test execution

Viewed 1295

I'm currently facing an issue with generating .gcda files for coverage data of a static library. I can get coverage data for most files, but not all.

I'll refer to the object file with the missing coverage data as X.

Some things to note:

  • I have compiled the library and test executable with the appropriate flags.
  • The .gcno files are generated for all objects, including X.
  • The .gcda files are generated for MOST objects, excepting X.
  • The symbol dump of X's object file has the gcov symbols present in its disassembly.

When running a test that uses X, .gcda files are generated for other files, just not X.

What could be happening that prevents a single .gcda file from being generated?

-

Operating System: OS X 10.12

LLVM Compiler Version: 8.0.0

2 Answers
Related