From e07488d4f66f1dba4ab8daa5dddd5b6de47f359a Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Tue, 22 May 2012 16:54:47 -0400 Subject: [PATCH] hrmm, why didn't Test::Qpsmtpd::Plugin::log work? --- t/plugin_tests/auth/auth_vpopmail | 7 ++++++- t/plugin_tests/ident/geoip | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/t/plugin_tests/auth/auth_vpopmail b/t/plugin_tests/auth/auth_vpopmail index 11cbdfa..fb9c724 100644 --- a/t/plugin_tests/auth/auth_vpopmail +++ b/t/plugin_tests/auth/auth_vpopmail @@ -1,5 +1,10 @@ #!perl -w +use strict; +use warnings; + +use Qpsmtpd::Constants; + sub register_tests { my $self = shift; @@ -17,7 +22,7 @@ sub test_auth_vpopmail { my $self = shift; if ( ! $self->test_vpopmail_module ) { - $self->log(LOGERROR, "vpopmail plugin not configured" ); + warn "vpopmail plugin not configured\n"; foreach ( 0..2) { ok( 1, "test_auth_vpopmail, skipped") }; return; }; diff --git a/t/plugin_tests/ident/geoip b/t/plugin_tests/ident/geoip index ff8d31f..c5f59ba 100644 --- a/t/plugin_tests/ident/geoip +++ b/t/plugin_tests/ident/geoip @@ -11,7 +11,6 @@ sub register_tests { eval 'use Geo::IP'; if ( $@ ) { warn "could not load Geo::IP\n"; - $self->log(LOGERROR, "could not load Geo::IP"); return; };