Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make: fix report-coverage



details:   https://anonhg.NetBSD.org/src/rev/56b0e2ab6ac5
branches:  trunk
changeset: 1018969:56b0e2ab6ac5
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Feb 22 20:45:46 2021 +0000

description:
make: fix report-coverage

On NetBSD 8.0 it still worked.  Maybe gcov doesn't support .c files as
arguments anymore.  Using the .gcda files works and is more reliable
anyway since it covers the inline functions in the headers as well.

diffstat:

 usr.bin/make/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5b9d1b517966 -r 56b0e2ab6ac5 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Mon Feb 22 20:45:28 2021 +0000
+++ b/usr.bin/make/Makefile     Mon Feb 22 20:45:46 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.112 2021/01/30 16:05:45 rillig Exp $
+#      $NetBSD: Makefile,v 1.113 2021/02/22 20:45:46 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -202,7 +202,7 @@
 
 report-coverage: .PHONY
        @echo 'covered  uncovered  file'
-       @${GCOV} ${GCOV_OPTS} ${SRCS} 2>&1 \
+       @${GCOV} ${GCOV_OPTS} *.gcda 2>&1 \
        | perl -ne ${GCOV_PERL:Q} \
        | sort -nr
        @sed -i 's,^\([^:]*\): *[0-9]*:,\1: ,' *.gcov



Home | Main Index | Thread Index | Old Index