[cmake-developers] [CMake 0013121]: CTestCoverage Unknown gcov output line in gcc 4.7

Mantis Bug Tracker mantis at public.kitware.com
Wed Apr 11 11:29:33 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13121 
====================================================================== 
Reported By:                nabl64
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13121
Category:                   CTest
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-04-11 11:29 EDT
Last Modified:              2012-04-11 11:29 EDT
====================================================================== 
Summary:                    CTestCoverage Unknown gcov output line in gcc 4.7
Description: 
After upgrading to gcc 4.7

Test coverage output a tone of similar line to:
Unknown gcov output line: [Creating
'TestExtrapolateCellFluid.cpp.gcda##cmath.gcov']

Used last cmake and gcov:
cmake version 2.8.7.20120411-g621c0
gcov (GCC) 4.7.0 20120324 (prerelease)

It seems that gcov as changed is format for output from
"^(.*):creating [`'](.*\\.gcov)'"
To
"Creating [`'](.*\\.gcov)'"

I fixed for myself as quickfix line 776 of Source / CTest /
cmCTestCoverageHandler.cxx and changed the corresponding match to 1 instead of
2.

It then worked but with somes warning because of new text in gcov.
 

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-04-11 11:29 nabl64         New Issue                                    
======================================================================




More information about the cmake-developers mailing list