From: Dylan Hardison Date: Thu, 25 Feb 2016 15:17:05 +0000 (-0500) Subject: Bug 1250944 - 001compile.t doesn't set error mode, so errors exit the test suite X-Git-Tag: release-5.1.1~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=981cd0404a2a3a0a8a320c1709151b18075a3655;p=thirdparty%2Fbugzilla.git Bug 1250944 - 001compile.t doesn't set error mode, so errors exit the test suite r=dkl,a=dylan --- diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 77a272e1e5..8640247941 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -25,7 +25,6 @@ use Date::Format; sub _throw_error { my ($name, $error, $vars) = @_; - my $dbh = Bugzilla->dbh; my $cache = Bugzilla->request_cache; $vars ||= {}; diff --git a/t/001compile.t b/t/001compile.t index da95b7327d..e061b06c6b 100644 --- a/t/001compile.t +++ b/t/001compile.t @@ -25,6 +25,7 @@ BEGIN { use_ok('Bugzilla::Install::Requirements'); use_ok('Bugzilla'); } +Bugzilla->usage_mode(USAGE_MODE_TEST); sub compile_file { my ($file) = @_;