Attached is file: 0.3x-r704-svndiff
This fixes the unit tests.
Could someone apply it please.
Summary:
lib/Qpsmptd.pm:
$this_plugin = ...
to
($this_plugin) = ...
otherwise plugins are not loaded.
t/Test/Qpsmtpd.pm:
sub plugin_dir {
'./plugins';
}
to
sub plugin_dirs {
('./plugins');
}
matches interface change in lib/Qpsmptd.pm
--
--gh
Index: t/Test/Qpsmtpd.pm
===================================================================
--- t/Test/Qpsmtpd.pm (revision 704)
+++ t/Test/Qpsmtpd.pm (working copy)
@@ -70,8 +70,8 @@
'./config.sample';
}
-sub plugin_dir {
- './plugins';
+sub plugin_dirs {
+ ('./plugins');
}
sub log {
Index: lib/Qpsmtpd.pm
===================================================================
--- lib/Qpsmtpd.pm (revision 704)
+++ lib/Qpsmtpd.pm (working copy)
@@ -263,7 +263,7 @@
my @loaded;
for my $plugin_line (@plugins) {
- my $this_plugin = $self->_load_plugin($plugin_line, $self->plugin_dirs);
+ my ($this_plugin) = $self->_load_plugin($plugin_line, $self->plugin_dirs);
push @loaded, $this_plugin if $this_plugin;
}