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();
|
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;
|
||||||
|
|
|
@ -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" );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue