diff options
| author | rillig <rillig@NetBSD.org> | 2021-12-12 10:53:37 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2021-12-12 10:53:37 +0000 |
| commit | b46a60180b86bca024c620ec4ea82f9e75fe9ea1 (patch) | |
| tree | c991de3e4aacb3bcf4a7a08e4d02533c71b9230b /usr.bin/make | |
| parent | 6ec0366cf6b8304c3ea6c9db116b07beeb4f45a7 (diff) | |
make: do not report '?' for fully covered header files
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index fc33746d0f3..17c96570b57 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -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+= } elsif (/^Function '(\S+)'/) { 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", |
