From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E9B831F464 for ; Sun, 24 Nov 2019 00:22:37 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 01/17] tests: disable daemon workers in a few more places Date: Sun, 24 Nov 2019 00:22:21 +0000 Message-Id: <20191124002237.15713-2-e@80x24.org> In-Reply-To: <20191124002237.15713-1-e@80x24.org> References: <20191124002237.15713-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: There were still a few places where we used worker processes unnecessarily in tests, causing a small amount of unnecessary overhead. Followup-to: ad221e9b2852f6c5 ("t/*.t: disable nntpd/httpd worker processes in most tests") --- t/httpd-unix.t | 1 + t/nntpd.t | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/t/httpd-unix.t b/t/httpd-unix.t index d0c70a72..2c918281 100644 --- a/t/httpd-unix.t +++ b/t/httpd-unix.t @@ -24,6 +24,7 @@ END { kill 'TERM', $pid if defined $pid }; my $spawn_httpd = sub { my (@args) = @_; + push @args, '-W0'; $pid = fork; if ($pid == 0) { exec $httpd, @args, "--stdout=$out", "--stderr=$err", $psgi; diff --git a/t/nntpd.t b/t/nntpd.t index b516ffd1..4795dc00 100644 --- a/t/nntpd.t +++ b/t/nntpd.t @@ -90,7 +90,7 @@ EOF } ok($sock, 'sock created'); - my $cmd = [ $nntpd, "--stdout=$out", "--stderr=$err" ]; + my $cmd = [ $nntpd, '-W0', "--stdout=$out", "--stderr=$err" ]; $pid = spawn_listener(undef, $cmd, [ $sock ]); ok(defined $pid, 'forked nntpd process successfully'); my $host_port = $sock->sockhost . ':' . $sock->sockport;