]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/httpd-unix: warn about connection failure
authorEric Wong <e@80x24.org>
Fri, 9 Sep 2016 03:09:00 +0000 (03:09 +0000)
committerEric Wong <e@80x24.org>
Fri, 9 Sep 2016 03:27:51 +0000 (03:27 +0000)
Output $! for diagnostic purposes since I've noticed this on
two slow machines, today (and seemingly, never prior).

t/httpd-unix.t

index ef827fc669c1f7d280a59878c459006e64058120..4b0f116e8678595ac2a1012e7307d983b32cb610 100644 (file)
@@ -54,6 +54,7 @@ ok(-S $unix, 'UNIX socket was bound by -httpd');
 sub check_sock ($) {
        my ($unix) = @_;
        my $sock = IO::Socket::UNIX->new(Peer => $unix, Type => SOCK_STREAM);
+       warn "E: $! connecting to $unix\n" unless defined $sock;
        ok($sock, 'client UNIX socket connected');
        ok($sock->write("GET /host-port HTTP/1.0\r\n\r\n"),
                'wrote req to server');