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:
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
It appears that the issue was including the suspect files in both the test project and the library project. The .gcda files were found in the test's intermediate files, but were absent from the library's intermediate files.
Strange issue, and also difficult to debug.