summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2021-05-25 18:17:29 +0200
committerAnel Husakovic <anel@mariadb.org>2021-05-25 18:17:29 +0200
commite66b8ebdcba4085b17eaa27a1b41898fbc6f8d18 (patch)
tree0b09f53247ee19a965b53fddde5aea9fb49a64ea
parentcf9e4c8b16d038997d7284731478dc14ceb78c11 (diff)
downloadmariadb-git-bb-10.6-anel-MDEV-20787.tar.gz
MDEV-20787: Script dgcov.pl does not workbb-10.6-anel-MDEV-20787
-rwxr-xr-xmysql-test/dgcov.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/mysql-test/dgcov.pl b/mysql-test/dgcov.pl
index f04c73969b5..9938c477fb5 100755
--- a/mysql-test/dgcov.pl
+++ b/mysql-test/dgcov.pl
@@ -162,7 +162,13 @@ sub gcov_one_file {
}
# 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;