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:
parent
6638cf2e9e
commit
ce2a2bff0f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user