summaryrefslogtreecommitdiffstats
path: root/t/001compile.t
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-02-23 22:23:20 +0100
committerDylan Hardison <dylan@mozilla.com>2016-02-23 22:23:20 +0100
commit2c33712dc066463ab9741a009e56d9a5c2ffedf6 (patch)
tree0be4c1368181648d715a35fd077324d3db0e4dc7 /t/001compile.t
parenta8adffb5ba7161a9ac491cca98d880577c1ab2fc (diff)
downloadbugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.gz
bugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.xz
Bug 1246528 - Use Makefile.PL and allow Bugzilla use cpanm-compatible local dependencies
r=dkl,a=dylan
Diffstat (limited to 't/001compile.t')
-rw-r--r--t/001compile.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/001compile.t b/t/001compile.t
index a546e40ad..da95b7327 100644
--- a/t/001compile.t
+++ b/t/001compile.t
@@ -14,7 +14,7 @@ use 5.10.1;
use strict;
use warnings;
-use lib qw(. lib t);
+use lib qw(. lib local/lib/perl5 t);
use Config;
use Support::Files;
use Test::More tests => scalar(@Support::Files::testitems)
@@ -86,8 +86,7 @@ foreach my $file (@testitems) {
and $file ne "Bugzilla/DB/Schema.pm")
{
my $module = lc($1);
- my $dbd = DB_MODULE->{$module}->{dbd}->{module};
- eval("use $dbd; 1") or skip "$file: $dbd not installed", 1;
+ Bugzilla->feature($module) or skip "$file: Driver for $module not installed", 1;
}
compile_file($file);