|
From: Peter O. <obe...@us...> - 2012-10-05 15:20:43
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin
In directory vz-cvs-4.sog:/tmp/cvs-serv14031/bin
Modified Files:
geninfo
Log Message:
geninfo: fix warning about unhandled .gcov files
gcov will sometimes create .gcov files that contain no instrumented
line. When geninfo reads .gcno files it filters out such files,
resulting in the following warning:
geninfo: WARNING: cannot find an entry for #path#to#file.gcov in
.gcno file, skipping file!
Avoid this warning by not filtering out non-instrumented lines.
Index: geninfo
===================================================================
RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v
retrieving revision 1.110
retrieving revision 1.111
diff -C2 -d -r1.110 -r1.111
*** geninfo 5 Oct 2012 12:00:57 -0000 1.110
--- geninfo 5 Oct 2012 15:20:41 -0000 1.111
***************
*** 2172,2181 ****
# Store modified list
! if (scalar(@new_data) > 0) {
! $instr->{$filename} = \@new_data;
! } else {
! # All of this file was excluded
! delete($instr->{$filename});
! }
}
--- 2172,2176 ----
# Store modified list
! $instr->{$filename} = \@new_data;
}
***************
*** 3104,3107 ****
--- 3099,3103 ----
}
$filename = solve_relative_path($base, $string);
+ $bb->{$function}->{$filename} = [];
next;
}
|