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