MantisBT - CMake
View Issue Details
0006988CMakeCMakepublic2008-05-08 09:052008-05-08 12:59
Andreas Schneider. 
Bill Hoffman 
normalmajoralways
closedfixed 
CMake-2-6 
 
0006988: CMake 2.6 and latest CDash version coverage results don't work
The Code Coverage report to CDash (svn rev. 925) of CMake 2.6 (final) is broken. It works just fine with 2.4.8. See

http://testing.csync.org/viewCoverage.php?buildid=341 [^]

Attached is a file named result.tar.gz which includes the generated xml files which got sent to the dashboard.

Let me know if I can provide more information.
No tags attached.
gz results.tar.gz (89,242) 2008-05-08 09:05
https://public.kitware.com/Bug/file/1448/results.tar.gz
gz result_cmake248.tar.gz (85,861) 2008-05-08 11:35
https://public.kitware.com/Bug/file/1449/result_cmake248.tar.gz
Issue History
2008-05-08 09:05Andreas Schneider.New Issue
2008-05-08 09:05Andreas Schneider.File Added: results.tar.gz
2008-05-08 11:14Bill HoffmanNote Added: 0011750
2008-05-08 11:14Bill HoffmanStatusnew => assigned
2008-05-08 11:14Bill HoffmanAssigned To => Bill Hoffman
2008-05-08 11:35Andreas Schneider.File Added: result_cmake248.tar.gz
2008-05-08 11:42Andreas Schneider.Note Added: 0011752
2008-05-08 12:02Bill HoffmanNote Added: 0011753
2008-05-08 12:26Andreas Schneider.Note Added: 0011754
2008-05-08 12:58Bill HoffmanNote Added: 0011755
2008-05-08 12:59Bill HoffmanStatusassigned => closed
2008-05-08 12:59Bill HoffmanResolutionopen => fixed

Notes
(0011750)
Bill Hoffman   
2008-05-08 11:14   
Can you attach a results.tar file from CMake 2.4.8 that does work?
(0011752)
Andreas Schneider.   
2008-05-08 11:42   
The problem is that the covered tag is set to false on 2.6

- <File Name="csync_config.c" FullPath="./src/csync_config.c" Covered="false">
+ <File Name="csync_config.c" FullPath="./src/csync_config.c" Covered="true">
(0011753)
Bill Hoffman   
2008-05-08 12:02   
I think I found it. Did you build cmake 2.6.0 from source? If yes, can you try this:

Change
Line 541 of Source/CTest/cmCTestCoverageHandler.cxx:

     << "\" Covered=\"" << (tested > 0?"true":"false") << "\">\n"
(0011754)
Andreas Schneider.   
2008-05-08 12:26   
This fixes the problem, great!
(0011755)
Bill Hoffman   
2008-05-08 12:58   
Thanks, I have made a commit, fix will be in 2.6.1.

$ cvs commit -m "BUG: 0006988 do not set coverage to false when it is not" cmCTestCoverageHandler.cxx
/cvsroot/CMake/CMake/Source/CTest/cmCTestCoverageHandler.cxx,v <-- cmCTestCoverageHandler.cxx
new revision: 1.52; previous revision: 1.51