Przeglądaj źródła

Output total time when using -j N

Bill Hoffman 16 lat temu
rodzic
commit
a696fe8183

+ 1 - 1
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;  

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

+ 1 - 0
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;