]> granicus.if.org Git - php/commitdiff
gcov: tentative fix for broken coverage data after fix for opcache coverage
authorNuno Lopes <nlopess@php.net>
Sun, 18 May 2014 15:24:22 +0000 (11:24 -0400)
committerNuno Lopes <nlopess@php.net>
Sun, 18 May 2014 15:24:22 +0000 (11:24 -0400)
slightly hackish, but works. The idea is that we want to give priority to .gcda files in .libs dirs vs the files in the upper level dir

Makefile.gcov

index 37c1b4b44c29ce0a2a3b0471b7314bbfbf1a82ea..02774b838eaffea9f3d04eb5d31827b48a94dfab 100644 (file)
@@ -14,7 +14,7 @@ php_lcov.info: lcov-test
        @rm -rf lcov_data/
        @$(mkinstalldirs) lcov_data/
        @echo
-       -@files=`find . -name \*.gcda -o -name \*.gcno -o -name \*.da -o -name \*.c -o -name \*.h | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | $(EGREP) $(LCOV_INCLUDE) | uniq` ;\
+       -@files=`find . -name \*.gcda -o -name \*.gcno -o -name \*.da -o -name \*.c -o -name \*.h | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | $(EGREP) $(LCOV_INCLUDE) | sed -e 's/.libs/ZZZZ/g' | sort | sed -e 's/ZZZZ/.libs/g' | uniq` ;\
        for x in $$files; do \
                echo -n . ;\
                y=`echo $$x | sed -e 's!\.libs/!!'`; \