Previously, we were re-using the value for CMAKE_UNIT_COVERAGE_FILE
implicitly by including AuxCMakeLists.txt and running the
PRECONFIGURE phase. This may have caused the coverage file currently
in use for the parent test suite to be overwritten, which was
incorrect. This led to incorrect coveraeg results.
We now set CMAKE_UNIT_COVERAGE_FILE to something sensible - either
a user specified coverage file if the test needs to collect
coverage data on inner tests, or to an empty string.
Previously, we were re-using the value for CMAKE_UNIT_COVERAGE_FILE implicitly by including AuxCMakeLists.txt and running the PRECONFIGURE phase. This may have caused the coverage file currently in use for the parent test suite to be overwritten, which was incorrect. This led to incorrect coveraeg results.
We now set CMAKE_UNIT_COVERAGE_FILE to something sensible - either a user specified coverage file if the test needs to collect coverage data on inner tests, or to an empty string.