You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide some additional safety when messages are ignored or suppressed,
to warn if the number of messages is different from expectation.
(Inspired by yacc 'expect' feature - for similar reasons.)
See man genhtml(1) and lcovrc(5) for more details.
Signed-off-by: Henry Cox <henry.cox@mediatek.com>
Copy file name to clipboardExpand all lines: man/genhtml.1
+75-1Lines changed: 75 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,9 @@ genhtml \- Generate HTML view from LCOV coverage data files
86
86
.RB [ \-\-ignore\-errors
87
87
.IR errors ]
88
88
.br
89
+
.RB [\-\-expect\-message\-count
90
+
.IR message_type=expr[,message_type=expr..]]
91
+
.br
89
92
.RB [ \-\-keep\-going ]
90
93
.RB [ \-\-config\-file
91
94
.IR config\-file ]
@@ -2862,7 +2865,6 @@ function alias record (
2862
2865
branch expression (3rd field in the .info file 'BRDA' entry) of merge data does not match
2863
2866
.PP
2864
2867
2865
-
2866
2868
.PP
2867
2869
.IP\-3
2868
2870
Negative number or zero line number encounted.
@@ -2962,12 +2964,84 @@ a tool called during processing returned an error code (e.g., 'find' encountered
2962
2964
\-\-version\-script comparison returned non\-zero mismatch indication. It likely that the version of the file which was used in coverage data extraction is different than the source version which was found. File annotations may be incorrect.
2963
2965
.PP
2964
2966
2967
+
Note that certain error messages are caused by issues that you probably cannot
2968
+
fix by yourself - for example, bugs in your tool chain which result in
2969
+
.Iinconsistent
2970
+
coverage DB data (see above).
2971
+
In those cases, after reviewing the messages you may want to exclude the offending code or the entire offending
2972
+
file, or you may simply ignore the messages - either by converting to warning or suppressing entirely.
2973
+
Another alternative is to tell
2974
+
.Bgenhtml
2975
+
about the number of messages you expect - so that it can warn you if something changes
2976
+
such that the count differs, such that you know to review the messages again.
Copy file name to clipboardExpand all lines: man/geninfo.1
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,9 @@ geninfo \- Generate tracefiles from GCOV coverage data files
55
55
.RB [ \-\-ignore\-errors
56
56
.IR errors ]
57
57
.br
58
+
.RB [\-\-expect\-message\-count
59
+
.IR message_type=expr[,message_type=expr..]]
60
+
.br
58
61
.RB [ \-\-keep\-going ]
59
62
.br
60
63
.RB [ \-\-preserve ]
@@ -975,8 +978,27 @@ See man
975
978
.Blcovrc(5)
976
979
for a discussion of the 'max_message_count' parameter which can be used to control the number of warnings which are emitted before all subsequent messages are suppressed. This can be used to reduce log file volume.
0 commit comments