From ce2a2bff0f087257220ac372cc499cf037599a03 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 19 Jul 2021 22:06:42 +0200 Subject: [PATCH] MDEV-20787 Script dgcov.pl does not work When building with `make` gcov files use full path names, when building with `ninja` gcov files use paths relative to the source root in gcov_one_file() the current directory is somewhere under CMakeFiles/, so if a file exists in the specified location, this location must've been a full path name. --- mysql-test/dgcov.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/dgcov.pl b/mysql-test/dgcov.pl index 734f5c6ed7d..2c00c64d1ff 100755 --- a/mysql-test/dgcov.pl +++ b/mysql-test/dgcov.pl @@ -171,7 +171,7 @@ sub gcov_one_file { next; } if (/^file:/) { - $fname=realpath($'); + $fname=realpath(-f $' ? $' : $root.$'); next; } next if /^lcount:\d+,-\d+/; # whatever that means