]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/httpd-unix.t
daemon: document optional Net::Server dependency
[public-inbox.git] / t / httpd-unix.t
index 580d14d2abbf4cbd9d72aa69bdd2799e890a3355..b3368491b14bb892efa813e790999fff92155486 100644 (file)
@@ -81,7 +81,11 @@ check_sock($unix);
        is($?, 0, 'existing httpd exited successfully');
        ok(-S $unix, 'unix socket still exists');
 }
-{
+
+SKIP: {
+       eval 'require Net::Server::Daemonize';
+       skip('Net::Server missing for pid-file/daemonization test', 10) if $@;
+
        # wait for daemonization
        $spawn_httpd->("-l$unix", '-D', '-P', "$tmpdir/pid");
        my $kpid = $pid;