diff options
Diffstat (limited to 't')
-rw-r--r-- | t/Support/Templates.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm index 6848cf178..40e16f105 100644 --- a/t/Support/Templates.pm +++ b/t/Support/Templates.pm @@ -98,6 +98,10 @@ sub find_templates { my $local_dir = File::Spec->abs2rel($File::Find::dir, $File::Find::topdir); + # File::Spec 3.13 and newer return "." instead of "" if both + # arguments of abs2rel() are identical. + $local_dir = "" if ($local_dir eq "."); + if ($local_dir) { $filename = File::Spec->catfile($local_dir, $_); } else { |