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.
This commit is contained in:
Sergei Golubchik 2021-07-19 22:06:42 +02:00
parent 6638cf2e9e
commit ce2a2bff0f

View File

@ -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