summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-07-05 07:25:47 +0200
committerlpsolit%gmail.com <>2006-07-05 07:25:47 +0200
commit074471309b0d9a452e9297d2940ea63887847f5a (patch)
tree1707dc578435b8df035312c51436278dc9553c03
parent049069a3bf31f6ac2228b7b22a9596526d504e0b (diff)
downloadbugzilla-074471309b0d9a452e9297d2940ea63887847f5a.tar.gz
bugzilla-074471309b0d9a452e9297d2940ea63887847f5a.tar.xz
Bug 343566: Runtests test 004template.t fails on some systems with a complaint about RELATIVE - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=myk
-rw-r--r--t/Support/Templates.pm4
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 {