MDEV-20787 Script dgcov.pl does not work
Author: Anel Husakovic <anel@mariadb.org>
This commit is contained in:
parent
7f0024a54f
commit
6e282e7efc
@ -161,8 +161,13 @@ sub gcov_one_file {
|
|||||||
system($cmd)==0 or die "system($cmd): $? $!";
|
system($cmd)==0 or die "system($cmd): $? $!";
|
||||||
}
|
}
|
||||||
|
|
||||||
# now, read the generated file
|
(my $filename = $_)=~ s/\.[^.]+$//; # remove extension
|
||||||
open FH, '<', "$_.gcov" or die "open(<$_.gcov): $!";
|
my $gcov_file_path= $File::Find::dir."/$filename.gcov";
|
||||||
|
if (! -f $gcov_file_path)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
open FH, '<', "$gcov_file_path" or die "open(<$gcov_file_path): $!";
|
||||||
my $fname;
|
my $fname;
|
||||||
while (<FH>) {
|
while (<FH>) {
|
||||||
chomp;
|
chomp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user