MantisBT - CMake
View Issue Details
0004971CMakeCTestpublic2007-05-06 10:072008-10-01 13:38
Trevor Kellaway 
Bill Hoffman 
urgentmajoralways
closedfixed 
 
CMake-2-6 
0004971: MSYS gcov fails if drive letter case differs
When running coverage under MSYS CTest attempts to locate the source file by comparing paths, unfortunately under MSYS sometimes the drive letter can differ in case (I've yet to determine what in the environment causes this case difference), this causes gcov to fail to process the results.

The fix is to modify cmCTestCoverageHandler.cxx to perform a case insensitive test under Windows (see attached patch).
No tags attached.
related to 0004972closed Bill Hoffman Code coverage "Something went wrong" verbose mode reports wrong binary path. 
related to 0005668closed Bill Hoffman CMake/CTest code coverage support doesn't work for MinGW gcc under Windows 
patch msys_gcov_case_bug_fix.patch (744) 1969-12-31 19:00
https://public.kitware.com/Bug/file/992/msys_gcov_case_bug_fix.patch
Issue History
2007-08-31 11:28Alex NeundorfAssigned ToSystem Admin => David Cole
2007-09-02 14:07Trevor KellawayNote Added: 0008803
2008-07-31 12:22David ColeNote Added: 0012897
2008-07-31 12:22David ColeStatusassigned => resolved
2008-07-31 12:22David ColeResolutionopen => fixed
2008-07-31 12:23David ColeNote Added: 0012898
2008-07-31 12:23David ColeAssigned ToDavid Cole => Bill Hoffman
2008-07-31 12:23David ColeStatusresolved => assigned
2008-07-31 14:20David ColeRelationship addedrelated to 0004972
2008-10-01 13:38Bill HoffmanStatusassigned => closed
2008-10-01 13:38Bill HoffmanFixed in Version => CMake-2-6
2009-10-12 15:08David ColeRelationship addedrelated to 0005668

Notes
(0007566)
Trevor Kellaway   
2007-05-06 10:11   
Forgot to mention this is *always* failing for me currently.

Also, the supplied patch isn't very elegant, and could be done more portably than using _stricmp(), this was just to prove the fix.
(0008803)
Trevor Kellaway   
2007-09-02 14:07   
To clarify, this bug seems to exist when using CMake's "MSYS Makefiles" generator.
(0012897)
David Cole   
2008-07-31 12:22   
Fixed in CVS HEAD:

/cvsroot/CMake/CMake/Source/CTest/cmCTestCoverageHandler.cxx,v <-- cmCTestCoverageHandler.cxx
new revision: 1.54; previous revision: 1.53
(0012898)
David Cole   
2008-07-31 12:23   
Bill, merge to CMake-2-6 after a night on the dashboards... Thanks