[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-cvs
Subject: [Ltp-cvs] utils/analysis/lcov/bin geninfo,1.9,1.10
From: oberpapr () users ! sourceforge ! net
Date: 2004-01-14 10:14:15
Message-ID: E1Agi2R-0007CG-00 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/ltp/utils/analysis/lcov/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv27429/bin
Modified Files:
geninfo
Log Message:
lcov-patch by Laurent Deniel: avoids aborting the geninfo processing when an
empty .bb file is encountered (e.g. source code with no profiled statement)
Index: geninfo
===================================================================
RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- geninfo 19 Dec 2003 16:22:52 -0000 1.9
+++ geninfo 14 Jan 2004 10:14:10 -0000 1.10
@@ -40,6 +40,7 @@
# 2003-09-18 / Nigel Hinds: capture branch coverage data from GCOV
# 2003-12-11 / Laurent Deniel: added --follow option
# workaround gcov (<= 3.2.x) bug with empty .da files
+# 2004-01-03 / Laurent Deniel: Ignore empty .bb files
#
use strict;
@@ -347,6 +348,13 @@
$bb_filename = readlink($bb_filename);
}
+ # Ignore empty .bb file (e.g. source file with no statement)
+ if (-z $bb_filename)
+ {
+ warn("WARNING: empty $bb_filename (skipped)\n");
+ return;
+ }
+
# Read contents of .bb file into hash. We need it later to find out
# the absolute path to each .gcov file created as well as for
# information about functions and their source code positions.
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Ltp-cvs mailing list
Ltp-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic