summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-07-19 22:06:42 +0200
committerSergei Golubchik <serg@mariadb.org>2021-07-20 10:29:53 +0200
commitce2a2bff0f087257220ac372cc499cf037599a03 (patch)
tree03cc641041fc8f2a3b85173b8554999d343fdc9c
parent6638cf2e9ea49c21a504c9f1b8e6460887930441 (diff)
downloadmariadb-git-ce2a2bff0f087257220ac372cc499cf037599a03.tar.gz
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.
-rwxr-xr-xmysql-test/dgcov.pl2
1 files changed, 1 insertions, 1 deletions
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