Bugzilla – Bug 377
--lcov-report not working fully
Last modified: 2009-04-24 07:39:10 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
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).
agreed on 10/22 to try to fix this for 3.3 release (non-blocker)
(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
a simple fix is to ignore the error from the wscript and proceed with html generation anyway.
Created attachment 426 [details] Avoids reading of garbage data
changeset: 412842631b1d