From: Reinhard Tartler <[email protected]>

Without this, lcov sometimes misses to normalize paths that contain "/./".
Also, ignore uninteresting hits in system headers.
---
 tests/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/Makefile b/tests/Makefile
index 86b7503..23453b1 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -130,6 +130,8 @@ fate-list:
 coverage.info: TAG = LCOV
 coverage.info:
        $(M)lcov -q -d $(CURDIR) -b $(SRC_PATH) --capture -o $@
+       @sed -i "s,$(CURDIR)/\./,$(CURDIR)/," $@
+       $(M)lcov -q --remove $@ "/usr/include*" -o $@
 
 lcov:  TAG = GENHTML
 lcov: coverage.info
-- 
1.8.1.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to