Output total time when using -j N

This commit is contained in:
Bill Hoffman 2009-08-11 22:02:49 -04:00
parent b7e3146275
commit a696fe8183
3 changed files with 3 additions and 2 deletions

View File

@ -248,7 +248,7 @@ void cmCTestMultiProcessHandler::EndTest(cmProcess* p)
int exitVal = p->GetExitValue(); int exitVal = p->GetExitValue();
cmCTestTestHandler::cmCTestTestResult cres; cmCTestTestHandler::cmCTestTestResult cres;
cres.Properties = 0; cres.Properties = 0;
cres.ExecutionTime = 0;// ??? cres.ExecutionTime = p->GetTotalTime();
cres.ReturnValue = exitVal; cres.ReturnValue = exitVal;
cres.Status = cmCTestTestHandler::COMPLETED; cres.Status = cmCTestTestHandler::COMPLETED;
cres.TestCount = test; cres.TestCount = test;

View File

@ -592,7 +592,7 @@ int cmCTestTestHandler::ProcessHandler()
char buf[1024]; char buf[1024];
sprintf(buf, "%6.2f sec", totalTestTime); sprintf(buf, "%6.2f sec", totalTestTime);
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal CPU time = " cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal Test time = "
<< buf << "\n" ); << buf << "\n" );
} }

View File

@ -53,6 +53,7 @@ public:
int GetId() { return this->Id; } int GetId() { return this->Id; }
void SetId(int id) { this->Id = id;} void SetId(int id) { this->Id = id;}
int GetExitValue() { return this->ExitValue;} int GetExitValue() { return this->ExitValue;}
double GetTotalTime() { return this->TotalTime;}
private: private:
int LastOutputPipe; int LastOutputPipe;
double Timeout; double Timeout;