Bugs item #1750683, was opened at 2007-07-09 16:57
Message generated for change (Comment added) made by subrata_modak
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=103382&aid=1750683&group_id=3382
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tools
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stefan Kost (ensonic)
Assigned to: Nobody/Anonymous (nobody)
Summary: lcov: non project file in info
Initial Comment:
this is how I build my coverage report
coverage::
mkdir -p ./coverage
lcov --directory . --zerocounters
-$(MAKE) check
lcov --directory ./src --capture --output-file
./coverage/$(PACKAGE).info
genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
The generated report has non project file in the report. When I run:
grep "^SF:" ./coverage/buzztard.info | sort | uniq
I get e.g.
SF:/home/ensonic/projects/buzztard.coverage/buzztard/src/ui/edit/volume-popup.c
SF:/home/ensonic/projects/buzztard.coverage/buzztard/src/ui/edit/wire-analysis-dialog.c
SF:/home/ensonic/projects/buzztard.coverage/buzztard/src/ui/edit/wire-canvas-item.c
SF:/opt/gnome/include/gstreamer-0.10/gst/gstevent.h
SF:/usr/include/stdlib.h
where the last two should not be there. I tried, but couldn't figure out where
in geninfo it limmits the filenames.
----------------------------------------------------------------------
>Comment By: Subrata (subrata_modak)
Date: 2007-07-12 10:47
Message:
Logged In: YES
user_id=1737361
Originator: NO
Peter Oberparleiter explained the same. So, closing this.
Regards--
Subrata
----------------------------------------------------------------------
Comment By: Stefan Kost (ensonic)
Date: 2007-07-11 16:35
Message:
Logged In: YES
user_id=250654
Originator: YES
Thanks for the help and explanation. That indeed works. I leave it up to
you to decive if this is a bug or not. I would have expected all includes
(that bring in code) covered or none.
----------------------------------------------------------------------
Comment By: Peter Oberparleiter (oberpapr)
Date: 2007-07-11 08:48
Message:
Logged In: YES
user_id=586057
Originator: NO
I don't think this counts as a bug, more like a usage question suited for
the ltp-coverage mailing list.
Anyway, you can use lcov options --remove or --extract to create a new
.info file by specifying which entries not to include (--remove) or which
entries to include (--extract).
Example:
lcov --extract buzztard.info \*buzztard\* -o buzztard2.info
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=103382&aid=1750683&group_id=3382
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list