From: Reinhard Tartler <[email protected]>

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

now without using GNU sed extensions

diff --git a/tests/Makefile b/tests/Makefile
index 86b7503..939490b 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -129,7 +129,9 @@ fate-list:
 
 coverage.info: TAG = LCOV
 coverage.info:
-       $(M)lcov -q -d $(CURDIR) -b $(SRC_PATH) --capture -o $@
+       $(M)lcov -q -d $(CURDIR) -b $(SRC_PATH) --capture | \
+           sed "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