]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/git-http-backend: disable worker processes
authorEric Wong <e@80x24.org>
Fri, 13 Sep 2019 08:57:02 +0000 (08:57 +0000)
committerEric Wong <e@80x24.org>
Thu, 10 Oct 2019 18:44:10 +0000 (18:44 +0000)
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.

t/git-http-backend.t

index 1d9bb9f3230b0d70a3568c54f488e047e95c7599..c2a0465335c5b7cf94ffa782553995703b7dd50d 100644 (file)
@@ -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');
 }