[cmake-developers] [CMake 0012490]: Coverage counts 0 lines when path too long

Mantis Bug Tracker mantis at public.kitware.com
Tue Oct 4 13:55:44 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12490 
====================================================================== 
Reported By:                funkycoder
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12490
Category:                   CTest
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-10-04 13:55 EDT
Last Modified:              2011-10-04 13:55 EDT
====================================================================== 
Summary:                    Coverage counts 0 lines when path too long
Description: 
If the path to the .gcov files to be generated becomes to long, there is no
error message, the LOC counters are just 0.

Steps to Reproduce: 
Dropping the attached files in a directory like '/home/pascal/ctest-cov' and
running
mkdir d && cd d && cmake .. && make && make ExperimentalTest && make
ExperimentalCoverage

yields
	Covered LOC:         2
	Not covered LOC:     0
	Total LOC:           2

But when using 'abcdefghijklmnopqrstuvwxyz01234567890123456789' instead of 'd', 
it yields
	Covered LOC:         0
	Not covered LOC:     0
	Total LOC:           0


Additional Information: 
cmake version 2.8.5
ctest version 2.8.5
c++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
gcov (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-10-04 13:55 funkycoder     New Issue                                    
2011-10-04 13:55 funkycoder     File Added: CMakeLists.txt                    
======================================================================




More information about the cmake-developers mailing list