]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei.t
send and receive all 3 FDs at once
[public-inbox.git] / t / lei.t
diff --git a/t/lei.t b/t/lei.t
index 541d83cef9a8e77d69873ec0a2ce31715149c01d..42c0eb8ff22b790e9213acc43c9dba5ec712dc13 100644 (file)
--- a/t/lei.t
+++ b/t/lei.t
@@ -192,7 +192,11 @@ if ($ENV{TEST_LEI_ONESHOT}) {
 }
 
 SKIP: { # real socket
-       require_mods(qw(IO::FDPass Cwd), 46);
+       require_mods(qw(Cwd), my $nr = 46);
+       require PublicInbox::Spawn;
+       skip "Inline::C not installed/configured or IO::FDPass missing", $nr
+               unless PublicInbox::Spawn->can('send_3fds');
+
        local $ENV{XDG_RUNTIME_DIR} = "$home/xdg_run";
        my $sock = "$ENV{XDG_RUNTIME_DIR}/lei/sock";