diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index e231c3358..70ca4c0e8 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -248,7 +248,7 @@ void cmCTestMultiProcessHandler::EndTest(cmProcess* p) int exitVal = p->GetExitValue(); cmCTestTestHandler::cmCTestTestResult cres; cres.Properties = 0; - cres.ExecutionTime = 0;// ??? + cres.ExecutionTime = p->GetTotalTime(); cres.ReturnValue = exitVal; cres.Status = cmCTestTestHandler::COMPLETED; cres.TestCount = test; diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 1e4137180..340704808 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -592,7 +592,7 @@ int cmCTestTestHandler::ProcessHandler() char buf[1024]; sprintf(buf, "%6.2f sec", totalTestTime); - cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal CPU time = " + cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal Test time = " << buf << "\n" ); } diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h index 67a5268e4..8b943c09e 100644 --- a/Source/CTest/cmProcess.h +++ b/Source/CTest/cmProcess.h @@ -53,6 +53,7 @@ public: int GetId() { return this->Id; } void SetId(int id) { this->Id = id;} int GetExitValue() { return this->ExitValue;} + double GetTotalTime() { return this->TotalTime;} private: int LastOutputPipe; double Timeout;