Commit 6e282e7e authored by Monty's avatar Monty

MDEV-20787 Script dgcov.pl does not work

Author: Anel Husakovic <anel@mariadb.org>
parent 7f0024a5
......@@ -161,8 +161,13 @@ sub gcov_one_file {
system($cmd)==0 or die "system($cmd): $? $!";
}
# now, read the generated file
open FH, '<', "$_.gcov" or die "open(<$_.gcov): $!";
(my $filename = $_)=~ s/\.[^.]+$//; # remove extension
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;
while (<FH>) {
chomp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment