about summary refs log tree commit homepage
path: root/t/httpd-corner.psgi
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-04 03:01:37 +0000
committerEric Wong <e@80x24.org>2019-11-08 20:23:53 +0000
commitad221e9b2852f6c57ec1692dafa786de60621bb6 (patch)
tree549efcbbe77a38cddaaec45029e99d8f6d45fc5f /t/httpd-corner.psgi
parent1709921529d4024e241ec64b86a5d408333f667e (diff)
downloadpublic-inbox-ad221e9b2852f6c57ec1692dafa786de60621bb6.tar.gz
And explicitly test for respawning in t/httpd-corner.t

There's no need to have an extra entries in the process table
for most tests we run, since that's not what we're testing.
Diffstat (limited to 't/httpd-corner.psgi')
-rw-r--r--t/httpd-corner.psgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/httpd-corner.psgi b/t/httpd-corner.psgi
index 5628f4ab..bf38d1ff 100644
--- a/t/httpd-corner.psgi
+++ b/t/httpd-corner.psgi
@@ -85,6 +85,9 @@ my $app = sub {
                         close $null;
                         [ 200, [ qw(Content-Type application/octet-stream) ]];
                 });
+        } elsif ($path eq '/pid') {
+                $code = 200;
+                push @$body, $$;
         }
 
         [ $code, $h, $body ]