Skip to content
Permalink
Browse files
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.
  • Loading branch information
vuvova committed Jul 20, 2021
1 parent 6638cf2 commit ce2a2bf
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit ce2a2bf

Please sign in to comment.