]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1250944 - 001compile.t doesn't set error mode, so errors exit the test suite
authorDylan Hardison <dylan@mozilla.com>
Thu, 25 Feb 2016 15:17:05 +0000 (10:17 -0500)
committerDylan Hardison <dylan@mozilla.com>
Thu, 25 Feb 2016 15:17:28 +0000 (10:17 -0500)
r=dkl,a=dylan

Bugzilla/Error.pm
t/001compile.t

index 77a272e1e5896986052f0b778a04d3d1438bcb73..8640247941ba7377adab1deabc80a3e682fb7843 100644 (file)
@@ -25,7 +25,6 @@ use Date::Format;
 
 sub _throw_error {
     my ($name, $error, $vars) = @_;
-    my $dbh = Bugzilla->dbh;
     my $cache = Bugzilla->request_cache;
     $vars ||= {};
 
index da95b7327dae3be0f500a470c04ad9e3f3e8a598..e061b06c6b94ca77f2fe72057305141d0ecd71f9 100644 (file)
@@ -25,6 +25,7 @@ BEGIN {
     use_ok('Bugzilla::Install::Requirements');
     use_ok('Bugzilla');
 }
+Bugzilla->usage_mode(USAGE_MODE_TEST);
 
 sub compile_file {
     my ($file) = @_;