diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index dfe46efa1..c04fd9afb 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1503,26 +1503,31 @@ void cmCTestTestHandler::GenerateDartOutput(std::ostream& os)
{
os << "\t\t\t"
- << this->GetTestStatus(result->Status) << ""
+ << cmCTest::MakeXMLSafe(this->GetTestStatus(result->Status))
+ << ""
"\n"
<< "\t\t\t"
- << result->ReturnValue << ""
+ << result->ReturnValue
+ << ""
<< std::endl;
}
os << result->RegressionImages;
os << "\t\t\t"
- << result->ExecutionTime << "\n";
+ << result->ExecutionTime
+ << "\n";
os
<< "\t\t\t"
- << result->CompletionStatus << "\n";
+ << cmCTest::MakeXMLSafe(result->CompletionStatus)
+ << "\n";
}
os
<< "\t\t\t"
- << result->FullCommandLine << "\n";
+ << cmCTest::MakeXMLSafe(result->FullCommandLine)
+ << "\n";
std::map::iterator measureIt;
for ( measureIt = result->Properties->Measurements.begin();
measureIt != result->Properties->Measurements.end();
@@ -1531,7 +1536,8 @@ void cmCTestTestHandler::GenerateDartOutput(std::ostream& os)
os
<< "\t\t\tfirst.c_str() << "\">"
- << measureIt->second.c_str() << "\n";
+ << cmCTest::MakeXMLSafe(measureIt->second.c_str())
+ << "\n";
}
os
<< "\t\t\t\n"