From: lpsolit%gmail.com <> Date: Wed, 5 Jul 2006 05:30:17 +0000 (+0000) Subject: Bug 343566: Runtests test 004template.t fails on some systems with a complaint about... X-Git-Tag: bugzilla-2.18.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90dd6d5e0223dccc346dc226ae483d86906e2b0d;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 4403580155..330cedbc98 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 {