From: SourceForge.net <no...@so...> - 2007-07-11 16:35:41
|
Bugs item #1750683, was opened at 2007-07-09 18:57 Message generated for change (Comment added) made by ensonic 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: Open Resolution: None 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: Stefan Kost (ensonic) Date: 2007-07-11 18: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 10: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 |