From 0a23c0ee40939b50a41a2d80e98f6f307d84d26f Mon Sep 17 00:00:00 2001 From: David Cole Date: Thu, 22 Jan 2009 07:16:05 -0500 Subject: BUG: Fix issue #8363. Wrap output with MakeXMLSafe calls so that the generated XML files are valid, parse-able XML. --- Source/CTest/cmCTestTestHandler.cxx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index dfe46ef..c04fd9a 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" -- cgit v0.12