Output total time when using -j N
This commit is contained in:
parent
b7e3146275
commit
a696fe8183
|
@ -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;
|
||||
|
|
|
@ -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" );
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue