Module: libav
Branch: master
Commit: 95e8ac60f8b7317ce23c648250fdc8fb68d65a07

Author:    Reinhard Tartler <[email protected]>
Committer: Reinhard Tartler <[email protected]>
Date:      Sun Apr 21 19:10:26 2013 +0200

build: normalize coverage.info

Without this, lcov sometimes misses to normalize paths that contain "/./".
Also, ignore uninteresting hits in system headers.

---

 tests/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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

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

Reply via email to