about summary refs log tree commit homepage
path: root/xt
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-06 09:46:04 +0000
committerEric Wong <e@80x24.org>2023-10-06 21:06:54 +0000
commit4c4466e455fd6940700125f8c21b326564915913 (patch)
tree5f6f5a05c8ec8d41074da74bdc566926a89c86b6 /xt
parentaef38b546fd15f161dc0f0c2c9ec9b7b7798672a (diff)
downloadpublic-inbox-4c4466e455fd6940700125f8c21b326564915913.tar.gz
require_bsd and require_mods(':fcntl_lock') are now
supported in TestCommon to make it easier to maintain
than a big list of regexps.

getsockopt for SO_ACCEPTFILTER seems to always succeed,
even if the retrieved struct is all zeroes.
Diffstat (limited to 'xt')
-rw-r--r--xt/pop3d-mpop.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/xt/pop3d-mpop.t b/xt/pop3d-mpop.t
index 9da1050c..ff8bb5dc 100644
--- a/xt/pop3d-mpop.t
+++ b/xt/pop3d-mpop.t
@@ -12,9 +12,8 @@ my $inboxdir = $ENV{GIANT_INBOX_DIR};
 plan skip_all => "bad characters in $inboxdir" if $inboxdir =~ m![^\w\.\-/]!;
 my $uuidgen = require_cmd('uuidgen');
 my $mpop = require_cmd('mpop');
-require_mods(qw(DBD::SQLite));
-require_git('2.6'); # for v2
-require_mods(qw(File::FcntlLock)) if $^O !~ /\A(?:linux|freebsd)\z/;
+require_mods(qw(DBD::SQLite :fcntl_lock));
+require_git(v2.6); # for v2
 
 my ($tmpdir, $for_destroy) = tmpdir();
 my $cfg = "$tmpdir/cfg";