问题描述
我已经使用-fprofile-arcs和-ftest-coverage编译了我的项目,这给了我这样的结构:
build_dir/
*config files etc*
modules/
thing/
src/
file.gcno
tests/
blue/
common/
file2.gcno
dist/
bin/
myexecutable
然后我以应生成覆盖率数据的方式运行myexecutable。然后,我在所有cpp文件上运行gcov,尽管我正在运行可执行文件并与之交互,但该文件对所有内容均显示0%执行:
build_dir/
*config files etc*
File.cpp.gcov
File.h.gcov
File2.cpp.gcov
File2.h.gcov
etc
modules/
thing/
src/
file.gcno
tests/
blue/
common/
file2.gcno
dist/
bin/
myexecutable
由于某种原因,我没有gcda文件。
lcov --c -directory . --output-file coverage.info
礼物:
Scanning . for .gcda files ...
geninfo WARNING: no .gcda files found in . - skipping!
我正在使用ubuntu,lcov 1.14版和gcov 9.3.0版
有什么想法需要寻找或者可能是什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)