Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

No coverage results when multiple test modules are present

12 views
Skip to first unread message

Asith Warnakulasuriya

unread,
Feb 21, 2025, 5:06:23 AMFeb 21
to ThrowTheSwitch Forums
Hi, when I try to get the code coverage reports using gcov, it initially worked when I had only a single module. However, when I created another module using module:create[], the unit tests run OK but the coverage report is not generated, along with the warning "Found no coverage results for test_rainflow::rainflow.c" (rainflow is the second module).
When I check the console output with verbose level 4, I noticed that the build command for rainflow.o file with -fprofile-arcs -ftest-coverage flags is not run. Also, .gcda and .gcno files are created only for the first module, not the rainflow (2nd) module.
How can I fix this?
Reply all
Reply to author
Forward
0 new messages