Bug 377 - --lcov-report not working fully
--lcov-report not working fully
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: general
ns-3-dev
All All
: P3 normal
Assigned To: Faker Moatamri
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-10 17:34 UTC by Tom Henderson
Modified: 2009-04-24 07:39 UTC (History)
3 users (show)

See Also:


Attachments
Avoids reading of garbage data (449 bytes, patch)
2009-04-23 11:38 UTC, Faker Moatamri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2008-10-10 17:34:22 UTC
./waf --lcov-report works for the unit tests, but not for examples or regression.

How to reproduce:
./waf configure --enable-gcov
./waf
./waf check
./waf --lcov-report 

(works so far, but then)
./waf --regression
./waf --lcov-report
exits with this error:

./waf --lcov-report
Entering directory `/home/tomh/hg/ns-3-dev/build'
Compilation finished successfully 
Capturing coverage data from .
Found gcov version: 4.2.3
Scanning . for .gcda files ...
Found 253 data files in .
Processing ./debug-gcov/examples/csma-multicast_12.gcda
ERROR: reading string
Comment 1 Tom Henderson 2008-10-10 17:37:09 UTC
A note on this configuration:

for ns-3, there is a specialized version of lcov-1.4 that resides in utils/lcov directory.  The current stable version is lcov-1.6.  Note that any attempt to migrate lcov-1.4 to lcov-1.6 in utils/lcov should preserve the existing patch (plus whatever is needed to make it work on regression).
Comment 2 Tom Henderson 2008-10-23 00:33:33 UTC
agreed on 10/22 to try to fix this for 3.3 release (non-blocker)
Comment 3 Mathieu Lacage 2008-10-24 09:13:06 UTC
(In reply to comment #1)
> A note on this configuration:
> 
> for ns-3, there is a specialized version of lcov-1.4 that resides in utils/lcov
> directory.  The current stable version is lcov-1.6.  Note that any attempt to
> migrate lcov-1.4 to lcov-1.6 in utils/lcov should preserve the existing patch
> (plus whatever is needed to make it work on regression).

The same error happens with lcov 1.6

Comment 4 Mathieu Lacage 2008-10-24 09:37:35 UTC
a simple fix is to ignore the error from the wscript and proceed with html generation anyway. 
Comment 5 Faker Moatamri 2009-04-23 11:38:31 UTC
Created attachment 426 [details]
Avoids reading of garbage data
Comment 6 Mathieu Lacage 2009-04-24 07:39:10 UTC
changeset: 412842631b1d