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();
cmCTestTestHandler::cmCTestTestResult cres;
cres.Properties = 0;
cres.ExecutionTime = 0;// ???
cres.ExecutionTime = p->GetTotalTime();
cres.ReturnValue = exitVal;
cres.Status = cmCTestTestHandler::COMPLETED;
cres.TestCount = test;

View File

@ -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" );
}

View File

@ -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;