MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0004971 | CMake | CTest | public | 2007-05-06 10:07 | 2008-10-01 13:38 |
|
Reporter | Trevor Kellaway | |
Assigned To | Bill Hoffman | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | CMake-2-6 | |
|
Summary | 0004971: MSYS gcov fails if drive letter case differs |
Description | 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). |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | 0004972 | closed | Bill Hoffman | Code coverage "Something went wrong" verbose mode reports wrong binary path. | related to | 0005668 | closed | Bill Hoffman | CMake/CTest code coverage support doesn't work for MinGW gcc under Windows |
|
Attached Files | 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 |
Date Modified | Username | Field | Change |
2007-08-31 11:28 | Alex Neundorf | Assigned To | System Admin => David Cole |
2007-09-02 14:07 | Trevor Kellaway | Note Added: 0008803 | |
2008-07-31 12:22 | David Cole | Note Added: 0012897 | |
2008-07-31 12:22 | David Cole | Status | assigned => resolved |
2008-07-31 12:22 | David Cole | Resolution | open => fixed |
2008-07-31 12:23 | David Cole | Note Added: 0012898 | |
2008-07-31 12:23 | David Cole | Assigned To | David Cole => Bill Hoffman |
2008-07-31 12:23 | David Cole | Status | resolved => assigned |
2008-07-31 14:20 | David Cole | Relationship added | related to 0004972 |
2008-10-01 13:38 | Bill Hoffman | Status | assigned => closed |
2008-10-01 13:38 | Bill Hoffman | Fixed in Version | => CMake-2-6 |
2009-10-12 15:08 | David Cole | Relationship added | related 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 |
|