mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-05 23:30:25 +00:00
cmCTest: Remove friend declarations
This commit is contained in:
@@ -132,14 +132,17 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
|
|||||||
} else {
|
} else {
|
||||||
this->TestResult.Status = cmCTestTestHandler::FAILED;
|
this->TestResult.Status = cmCTestTestHandler::FAILED;
|
||||||
outputStream << "***Failed " << reason;
|
outputStream << "***Failed " << reason;
|
||||||
outputTestErrorsToConsole = this->CTest->OutputTestOutputOnTestFailure;
|
outputTestErrorsToConsole =
|
||||||
|
this->CTest->GetOutputTestOutputOnTestFailure();
|
||||||
}
|
}
|
||||||
} else if (res == cmProcess::State::Expired) {
|
} else if (res == cmProcess::State::Expired) {
|
||||||
outputStream << "***Timeout ";
|
outputStream << "***Timeout ";
|
||||||
this->TestResult.Status = cmCTestTestHandler::TIMEOUT;
|
this->TestResult.Status = cmCTestTestHandler::TIMEOUT;
|
||||||
outputTestErrorsToConsole = this->CTest->OutputTestOutputOnTestFailure;
|
outputTestErrorsToConsole =
|
||||||
|
this->CTest->GetOutputTestOutputOnTestFailure();
|
||||||
} else if (res == cmProcess::State::Exception) {
|
} else if (res == cmProcess::State::Exception) {
|
||||||
outputTestErrorsToConsole = this->CTest->OutputTestOutputOnTestFailure;
|
outputTestErrorsToConsole =
|
||||||
|
this->CTest->GetOutputTestOutputOnTestFailure();
|
||||||
outputStream << "***Exception: ";
|
outputStream << "***Exception: ";
|
||||||
this->TestResult.ExceptionStatus =
|
this->TestResult.ExceptionStatus =
|
||||||
this->TestProcess->GetExitExceptionString();
|
this->TestProcess->GetExitExceptionString();
|
||||||
|
|||||||
@@ -2825,6 +2825,11 @@ bool cmCTest::GetSubprojectSummary() const
|
|||||||
return this->SubprojectSummary;
|
return this->SubprojectSummary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool cmCTest::GetOutputTestOutputOnTestFailure() const
|
||||||
|
{
|
||||||
|
return this->OutputTestOutputOnTestFailure;
|
||||||
|
}
|
||||||
|
|
||||||
const std::map<std::string, std::string>& cmCTest::GetDefinitions() const
|
const std::map<std::string, std::string>& cmCTest::GetDefinitions() const
|
||||||
{
|
{
|
||||||
return this->Definitions;
|
return this->Definitions;
|
||||||
|
|||||||
@@ -31,9 +31,6 @@ class cmXMLWriter;
|
|||||||
*/
|
*/
|
||||||
class cmCTest
|
class cmCTest
|
||||||
{
|
{
|
||||||
friend class cmCTestRunTest;
|
|
||||||
friend class cmCTestMultiProcessHandler;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef cmProcessOutput::Encoding Encoding;
|
typedef cmProcessOutput::Encoding Encoding;
|
||||||
/** Enumerate parts of the testing and submission process. */
|
/** Enumerate parts of the testing and submission process. */
|
||||||
@@ -455,6 +452,8 @@ public:
|
|||||||
|
|
||||||
std::string GetCostDataFile();
|
std::string GetCostDataFile();
|
||||||
|
|
||||||
|
bool GetOutputTestOutputOnTestFailure() const;
|
||||||
|
|
||||||
const std::map<std::string, std::string>& GetDefinitions() const;
|
const std::map<std::string, std::string>& GetDefinitions() const;
|
||||||
|
|
||||||
/** Return the number of times a test should be run */
|
/** Return the number of times a test should be run */
|
||||||
|
|||||||
Reference in New Issue
Block a user