Skip to content

Commit c3d9a66

Browse files
committed
Support coverage on vpath builds
A few paths needed to be tweaked so everything looks into the appropriate directories. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parent 52e1b1b commit c3d9a66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Makefile.global.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ GENHTML_TITLE = PostgreSQL $(VERSION)
898898

899899
coverage-html-stamp: lcov_base.info lcov_test.info
900900
rm -rf coverage
901-
$(GENHTML) $(GENHTML_FLAGS) -o coverage --title='$(GENHTML_TITLE)' --num-spaces=4 --prefix='$(abs_top_srcdir)' $^
901+
$(GENHTML) $(GENHTML_FLAGS) -o coverage --title='$(GENHTML_TITLE)' --num-spaces=4 $^
902902
touch $@
903903

904904
LCOV += --gcov-tool $(GCOV)
@@ -907,12 +907,12 @@ LCOVFLAGS = -q --no-external
907907
all_gcno_files = $(shell find . -name '*.gcno' -print)
908908

909909
lcov_base.info: $(all_gcno_files)
910-
$(LCOV) $(LCOVFLAGS) -c -i -d . -o $@
910+
$(LCOV) $(LCOVFLAGS) -c -i -d . -d $(srcdir) -o $@
911911

912912
all_gcda_files = $(shell find . -name '*.gcda' -print)
913913

914914
lcov_test.info: $(all_gcda_files)
915-
$(LCOV) $(LCOVFLAGS) -c -d . -o $@
915+
$(LCOV) $(LCOVFLAGS) -c -d . -d $(srcdir) -o $@
916916

917917

918918
# hook for clean-up

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy