File: handle-equals-signs.patch

package info (click to toggle)
lcov 1.13-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,144 kB
  • ctags: 639
  • sloc: perl: 10,115; xml: 3,610; makefile: 166; sh: 87; ansic: 61
file content (23 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Handle "=====" as another form of zero.
 gcov prints "=====" instead of "######" when an unexecuted line is
 "reachable only by exceptional paths such as C++ exception handlers."
 This should be handled the same as "######" for our purposes.
Author: Zack Weinberg <zackw@panix.com>
Last-Update: 2013-02-01

Index: lcov-1.12/bin/geninfo
===================================================================
--- lcov-1.12.orig/bin/geninfo
+++ lcov-1.12/bin/geninfo
@@ -1771,8 +1771,9 @@ sub read_gcov_file($)
 				$number = (split(" ",substr($_, 0, 16)))[0];
 
 				# Check for zero count which is indicated
-				# by ######
-				if ($number eq "######") { $number = 0;	}
+				# by ###### or =====
+				if ($number eq "######" or
+				    $number eq "=====") { $number = 0; }
 
 				if ($exclude_line) {
 					# Register uninstrumented line instead