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: do not report '?' for fully covered heade...
details: https://anonhg.NetBSD.org/src/rev/a57b783b360e
branches: trunk
changeset: 1027576:a57b783b360e
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Dec 12 10:53:37 2021 +0000
description:
make: do not report '?' for fully covered header files
diffstat:
usr.bin/make/Makefile | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 3fd15babfeae -r a57b783b360e usr.bin/make/Makefile
--- a/usr.bin/make/Makefile Sun Dec 12 10:33:03 2021 +0000
+++ b/usr.bin/make/Makefile Sun Dec 12 10:53:37 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.118 2021/12/12 10:33:03 rillig Exp $
+# $NetBSD: Makefile,v 1.119 2021/12/12 10:53:37 rillig Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
@@ -34,8 +34,9 @@
GCOV_PERL+= $$func = $$1;
GCOV_PERL+= } elsif (/^Lines executed:(\d+\.\d+)% of (\d+)/ && defined($$file)) {
GCOV_PERL+= my ($$percent, $$lines) = ($$1, $$2);
-GCOV_PERL+= my $$uncovered = $$file =~ /\.h$$/
-GCOV_PERL+= ? '?'
+GCOV_PERL+= my $$uncovered =
+GCOV_PERL+= $$percent eq '100.00' ? '0'
+GCOV_PERL+= : $$file =~ /\.h$$/ ? '?'
GCOV_PERL+= : `grep -c '\#\#\#\#\#:' < \$$(basename $$file.gcov)`;
GCOV_PERL+= chomp($$uncovered);
GCOV_PERL+= printf("%7.2f %4s/%4d %s%s\n",
Home |
Main Index |
Thread Index |
Old Index