MantisBT - CMake
View Issue Details
0012383CMakeCTestpublic2011-08-03 00:062012-03-06 08:37
Fraser Hutchison 
David Cole 
normalminoralways
closedfixed 
CMake 2.8.5 
CMake 2.8.7CMake 2.8.7 
0012383: CTest TestHandlers' CustomVectors are not cleared before being populated
When running a Continuous script where CTEST_START is called repeatedly (e.g. as per documentation at http://www.vtk.org/Wiki/CMake_Scripting_Of_CTest#Continuous_Builds_.28new_Style.29 [^]), the custom vectors of the test handlers are appended to each time.
For a project with a CTestCustom.cmake present containing e.g. "SET(CTEST_CUSTOM_COVERAGE_EXCLUDE ad.infinitum)", run a Continuous script with extra verbose output switched on. Each new run of the tests adds another "ad.infinitum" to the list of coverage exclusions.
The problem can be fixed by adding " vec.clear();" before populating the vector in cmCTest::PopulateCustomVector
No tags attached.
Issue History
2011-08-03 00:06Fraser HutchisonNew Issue
2011-08-03 12:10David ColeAssigned To => David Cole
2011-08-03 12:10David ColeStatusnew => assigned
2011-10-25 23:15David ColeTarget Version => CMake 2.8.7
2011-10-26 07:49David ColeNote Added: 0027654
2011-10-26 07:49David ColeStatusassigned => resolved
2011-10-26 07:49David ColeFixed in Version => CMake 2.8.7
2011-10-26 07:49David ColeResolutionopen => fixed
2012-03-06 08:37David ColeNote Added: 0028838
2012-03-06 08:37David ColeStatusresolved => closed

Notes
(0027654)
David Cole   
2011-10-26 07:49   
Fix pushed to 'next'

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=499c10457282f44d954c8a7385cbf9f8c82d1b08 [^]
(0028838)
David Cole   
2012-03-06 08:37   
Closing resolved issues that have not been updated in more than 4 months.