[Cmake-commits] [cmake-commits] hoffman committed cmCTestTestHandler.cxx 1.95 1.96
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jul 17 10:06:42 EDT 2009
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv15996
Modified Files:
cmCTestTestHandler.cxx
Log Message:
ENH: compute the max test name width based on the length of the tests
Index: cmCTestTestHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestTestHandler.cxx,v
retrieving revision 1.95
retrieving revision 1.96
diff -C 2 -d -r1.95 -r1.96
*** cmCTestTestHandler.cxx 2 Jul 2009 20:13:55 -0000 1.95
--- cmCTestTestHandler.cxx 17 Jul 2009 14:06:38 -0000 1.96
***************
*** 1109,1112 ****
--- 1109,1127 ----
// Set the TestList to the final list of all test
this->TestList = finalList;
+ std::string::size_type max = this->CTest->GetMaxTestNameWidth();
+ for (ListOfTests::iterator it = this->TestList.begin();
+ it != this->TestList.end(); it ++ )
+ {
+ cmCTestTestProperties& p = *it;
+ if(max < p.Name.size())
+ {
+ max = p.Name.size();
+ }
+ }
+ if(static_cast<std::string::size_type>(this->CTest->GetMaxTestNameWidth())
+ != max)
+ {
+ this->CTest->SetMaxTestNameWidth(max);
+ }
}
More information about the Cmake-commits
mailing list