View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012490CMakeCTestpublic2011-10-04 13:552012-03-06 08:37
Reporterfunkycoder 
Assigned ToDavid Cole 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
Platformi386OSLinux (Ubuntu)OS Version3.0.0-12
Product VersionCMake 2.8.5 
Target VersionCMake 2.8.7Fixed in VersionCMake 2.8.7 
Summary0012490: Coverage counts 0 lines when path too long
DescriptionIf 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 ReproduceDropping 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 Informationcmake 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
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (279 bytes) 2011-10-04 13:55 [Show Content]
cpp file icon test.cpp [^] (37 bytes) 2011-10-04 13:56
log file icon long.log [^] (9,146 bytes) 2011-10-04 13:56
log file icon short.log [^] (8,112 bytes) 2011-10-04 13:56

 Relationships
related to 0012415closedDavid Cole CTest doesn't push all generated coverage files to CDash 
related to 0011717closedDavid Cole gcov: handling the same file name in different directories 

  Notes
(0027521)
funkycoder (reporter)
2011-10-04 13:57

long.log and short.log is the output of 'ctest --debug -VV -D ExperimentalCoverage' in long and short paths respectively.
(0027532)
David Cole (manager)
2011-10-05 17:32

I suspect the fix for 0011717 is the cause of this, and the other related bug...
(0027616)
David Cole (manager)
2011-10-22 11:18

Fix pushed to 'next':

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2f309cba455d0a946e935f66a53561ba64717faf [^]
(0028828)
David Cole (manager)
2012-03-06 08:37

Closing resolved issues that have not been updated in more than 4 months.

 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
2011-10-04 13:56 funkycoder File Added: test.cpp
2011-10-04 13:56 funkycoder File Added: long.log
2011-10-04 13:56 funkycoder File Added: short.log
2011-10-04 13:57 funkycoder Note Added: 0027521
2011-10-05 17:30 David Cole Relationship added related to 0012415
2011-10-05 17:31 David Cole Assigned To => David Cole
2011-10-05 17:31 David Cole Status new => assigned
2011-10-05 17:32 David Cole Relationship added related to 0011717
2011-10-05 17:32 David Cole Note Added: 0027532
2011-10-21 12:20 David Cole Target Version => CMake 2.8.7
2011-10-22 11:18 David Cole Note Added: 0027616
2011-10-22 11:18 David Cole Status assigned => resolved
2011-10-22 11:18 David Cole Fixed in Version => CMake 2.8.7
2011-10-22 11:18 David Cole Resolution open => fixed
2012-03-06 08:37 David Cole Note Added: 0028828
2012-03-06 08:37 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team