Hi.
I'm measuring the source code coverage of an application with gcov/lcov.
I tried to use lcov version 1.6 :
 
notroot@ubuntu:[CVS]~/mser_gcov$ lcov --version
LTP GCOV extension version 1.6
with it, but I got ERROR: reading string :
 
notroot@ubuntu:[CVS]~/mser_gcov$ lcov -d NSrouter/bin/utils/p2punit -capture --output-file html/p2punit.info
Capturing coverage data from NSrouter/bin/utils/p2punit
Found gcov version: 4.3.3
Scanning NSrouter/bin/utils/p2punit for .gcda files ...
Found 3 data files in NSrouter/bin/utils/p2punit
Processing NSrouter/bin/utils/p2punit/LinuxControlPlaneUnitTest.gcda
Processing NSrouter/bin/utils/p2punit/p2punit_api.gcda
Processing NSrouter/bin/utils/p2punit/p2punit.gcda
ERROR: reading string
I downloaded version 1.8 from http://ltp.sourceforge.net/coverage/lcov.php :
 
notroot@ubuntu:[CVS]~/mser_gcov$ /home/notroot/share/lcov-1.8/bin/lcov --version
lcov: LCOV version 1.8
and then I got a new error :
 
notroot@ubuntu:[CVS]~/mser_gcov$ /home/notroot/share/lcov-1.8/bin/lcov -d NSrouter/bin/utils/p2punit -capture --output-file html/p2punit.info
Capturing coverage data from NSrouter/bin/utils/p2punit
Found gcov version: 4.3.3
Scanning NSrouter/bin/utils/p2punit for .gcda files ...
Found 3 data files in NSrouter/bin/utils/p2punit
Processing p2punit/LinuxControlPlaneUnitTest.gcda
Processing p2punit/p2punit_api.gcda
Processing p2punit/p2punit.gcda
geninfo: ERROR: /home/notroot/mser_gcov/NSrouter/bin/utils/p2punit/p2punit.gcno: reached unexpected end of file
Is there a way to solve this?
I can provide more info/files if you want.
Thanks in advance,
/Tomas
 
------------------------------------------------------------
Tomás Ortí Martín
Software Designer
EEM/TSW/D DESIGN DPI - SASN
Ericsson España S.A.
 
Location: MI01 6A2-24
Phone: +34 91 339 2759
Mobile: +34 636 286 272
Email: tomas.orti.martin@ericsson.com
------------------------------------------------------------