diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-02-03 00:24:26 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-02-06 15:42:09 +0100 |
commit | 14bf59c1d5b5fa3b4d075f481015b8110835276e (patch) | |
tree | 2af595e505e51ef006815c9ffbf0eb21e028da4d | |
parent | bb7522ce67e59271c928fc85ace6cd2d86aa131f (diff) | |
download | ffmpeg-14bf59c1d5b5fa3b4d075f481015b8110835276e.tar.gz |
build: use intermediate lcov coverage file
Otherwise the 'lcov -q --remove' run fails with the following error:
lcov: ERROR: cannot write to coverage.info!
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | tests/Makefile | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -177,7 +177,7 @@ clean:: $(RM) $(CLEANSUFFIXES) $(RM) $(CLEANSUFFIXES:%=tools/%) $(RM) -r coverage-html - $(RM) -rf coverage.info lcov + $(RM) -rf coverage.info coverage.info.in lcov distclean:: $(RM) $(DISTCLEANSUFFIXES) diff --git a/tests/Makefile b/tests/Makefile index db2bc61e76..6e5dfa6e1b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -217,8 +217,9 @@ fate-list: coverage.info: TAG = LCOV coverage.info: $(M)lcov -q -d $(CURDIR) -b $(patsubst src%,./,$(SRC_LINK)) --capture | \ - sed "s,$(CURDIR)/\./,$(CURDIR)/," > $@ - $(M)lcov -q --remove $@ "/usr*" -o $@ + sed "s,$(CURDIR)/\./,$(CURDIR)/," > $@.in + $(M)lcov -q --remove $@.in "/usr*" > $@ + $(Q)$(RM) $@.in lcov: TAG = GENHTML lcov: coverage.info |