MCPcopy Create free account
hub / github.com/Kitware/CMake / AttachFiles

Method AttachFiles

Source/CTest/cmCTestTestHandler.cxx:1554–1567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1552}
1553
1554void cmCTestTestHandler::AttachFiles(cmXMLWriter& xml,
1555 cmCTestTestResult& result)
1556{
1557 if (result.Status != cmCTestTestHandler::COMPLETED &&
1558 !result.Properties->AttachOnFail.empty()) {
1559 result.Properties->AttachedFiles.insert(
1560 result.Properties->AttachedFiles.end(),
1561 result.Properties->AttachOnFail.begin(),
1562 result.Properties->AttachOnFail.end());
1563 }
1564 for (std::string const& file : result.Properties->AttachedFiles) {
1565 this->AttachFile(xml, file, "");
1566 }
1567}
1568
1569void cmCTestTestHandler::AttachFile(cmXMLWriter& xml, std::string const& file,
1570 std::string const& name)

Callers 1

GenerateCTestXMLMethod · 0.95

Calls 5

AttachFileMethod · 0.95
emptyMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected