[Cmake-commits] [cmake-commits] hoffman committed cmCTestTestHandler.cxx 1.102 1.103
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Aug 18 14:03:52 EDT 2009
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv22035
Modified Files:
cmCTestTestHandler.cxx
Log Message:
Add test times to log file as well as the stdout.
Index: cmCTestTestHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestTestHandler.cxx,v
retrieving revision 1.102
retrieving revision 1.103
diff -C 2 -d -r1.102 -r1.103
*** cmCTestTestHandler.cxx 18 Aug 2009 17:34:04 -0000 1.102
--- cmCTestTestHandler.cxx 18 Aug 2009 18:03:50 -0000 1.103
***************
*** 595,599 ****
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal Test time = "
<< buf << "\n" );
!
}
--- 595,602 ----
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTotal Test time = "
<< buf << "\n" );
! if ( this->LogFile )
! {
! *this->LogFile << "\nTotal Test time = " << buf << std::endl;
! }
}
***************
*** 700,704 ****
{
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTime in "
! << *i << " = " << labelTimes[*i] << " sec" );
}
}
--- 703,712 ----
{
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\nTime in "
! << *i << " = " << labelTimes[*i] << " sec" );
! if ( this->LogFile )
! {
! *this->LogFile << "\nTime in " << *i << " = "
! << labelTimes[*i] << " sec" << std::endl;
! }
}
}
***************
*** 943,946 ****
--- 951,958 ----
sprintf(buf, "%6.2f sec", cres.ExecutionTime);
cmCTestLog(this->CTest, HANDLER_OUTPUT, buf << "\n" );
+ if ( this->LogFile )
+ {
+ *this->LogFile << "\nTest time = " << buf << std::endl;
+ }
if (!output.empty() && output.find("<DartMeasurement") != output.npos)
{
More information about the Cmake-commits
mailing list