From: Eric Wong <e@80x24.org>
Date: Fri, 13 Sep 2019 08:57:02 +0000 (+0000)
Subject: t/git-http-backend: disable worker processes
X-Git-Tag: v1.2.0~48
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=826a69a8c5c46278c10f1f9670edc4b953f3f88f;p=public-inbox.git

t/git-http-backend: disable worker processes

We want to ensure we run lsof(8) on the worker (if needed),
and not the master, which doesn't serve requests.

This was originally on top of a test-only patch in
https://public-inbox.org/meta/20190913015043.17149-1-e@80x24.org/
In any case, no point in spawning extra processes for this test.
---

diff --git a/t/git-http-backend.t b/t/git-http-backend.t
index 1d9bb9f3..c2a04653 100644
--- a/t/git-http-backend.t
+++ b/t/git-http-backend.t
@@ -44,7 +44,7 @@ my $get_maxrss = sub {
 
 {
 	ok($sock, 'sock created');
-	my $cmd = [ $httpd, "--stdout=$out", "--stderr=$err", $psgi ];
+	my $cmd = [ $httpd, '-W0', "--stdout=$out", "--stderr=$err", $psgi ];
 	ok(defined($pid = spawn_listener(undef, $cmd, [$sock])),
 	   'forked httpd process successfully');
 }