[cmake-developers] [CMake 0012383]: CTest TestHandlers' CustomVectors are not cleared before being populated

Mantis Bug Tracker mantis at public.kitware.com
Wed Aug 3 00:06:18 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12383 
====================================================================== 
Reported By:                Fraser Hutchison
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12383
Category:                   CTest
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-08-03 00:06 EDT
Last Modified:              2011-08-03 00:06 EDT
====================================================================== 
Summary:                    CTest TestHandlers' CustomVectors are not cleared
before being populated
Description: 
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.

Steps to Reproduce: 
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.

Additional Information: 
The problem can be fixed by adding "  vec.clear();" before populating the vector
in cmCTest::PopulateCustomVector
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-08-03 00:06 Fraser HutchisonNew Issue                                    
======================================================================




More information about the cmake-developers mailing list