}
SKIP: { # real socket
- require_mods(qw(IO::FDPass Cwd), 46);
+ require_mods(qw(Cwd), my $nr = 46);
+ my $nfd = eval { require IO::FDPass; 1 } // do {
+ require PublicInbox::Spawn;
+ PublicInbox::Spawn->can('send_3fds') ? 3 : undef;
+ } //
+ skip 'IO::FDPass missing or Inline::C not installed/configured', $nr;
+
local $ENV{XDG_RUNTIME_DIR} = "$home/xdg_run";
- my $sock = "$ENV{XDG_RUNTIME_DIR}/lei/sock";
+ my $sock = "$ENV{XDG_RUNTIME_DIR}/lei/$nfd.sock";
ok($lei->('daemon-pid'), 'daemon-pid');
is($err, '', 'no error from daemon-pid');