From: lpsolit%gmail.com <> Date: Wed, 5 Jul 2006 05:29:02 +0000 (+0000) Subject: Bug 343566: Runtests test 004template.t fails on some systems with a complaint about... X-Git-Tag: bugzilla-2.20.3~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=617c00b2710d896637cabcd95bac894559358ee8;p=thirdparty%2Fbugzilla.git Bug 343566: Runtests test 004template.t fails on some systems with a complaint about RELATIVE - Patch by Frédéric Buclin r=joel a=myk --- diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm index 6848cf1784..40e16f1053 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 {