Merge topic 'fix_jacoco_coverage_process'
c771f9d9
CTest: Fix Jacoco Coverage
This commit is contained in:
commit
addf4db06c
|
@ -78,7 +78,10 @@ class cmParseJacocoCoverage::XMLParser: public cmXMLParser
|
|||
std::string line;
|
||||
FileLinesType& curFileLines =
|
||||
this->Coverage.TotalCoverage[this->CurFileName];
|
||||
curFileLines.push_back(-1);
|
||||
if(fin)
|
||||
{
|
||||
curFileLines.push_back(-1);
|
||||
}
|
||||
while(cmSystemTools::GetLineFromStream(fin, line))
|
||||
{
|
||||
curFileLines.push_back(-1);
|
||||
|
|
|
@ -2409,6 +2409,8 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
|
|||
"${CMake_BINARY_DIR}/Testing/JacocoCoverage/DartConfiguration.tcl")
|
||||
file(COPY "${CMake_SOURCE_DIR}/Tests/JacocoCoverage/Coverage"
|
||||
DESTINATION "${CMake_BINARY_DIR}/Testing/JacocoCoverage")
|
||||
configure_file("${CMake_BINARY_DIR}/Testing/JacocoCoverage/Coverage/target/site/jacoco.xml.in"
|
||||
"${CMake_BINARY_DIR}/Testing/JacocoCoverage/Coverage/target/site/jacoco.xml")
|
||||
add_test(NAME CTestJacocoCoverage
|
||||
COMMAND cmake -E chdir
|
||||
${CMake_BINARY_DIR}/Testing/JacocoCoverage
|
||||
|
|
Loading…
Reference in New Issue