]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/httpd-unix: FreeBSD expects to fail with EADDRINUSE
authorEric Wong <e@80x24.org>
Thu, 28 Nov 2019 07:08:54 +0000 (07:08 +0000)
committerEric Wong <e@80x24.org>
Thu, 28 Nov 2019 20:38:48 +0000 (20:38 +0000)
Tested FreeBSD 11.2.  I'm starting to think I'm too conservative
with this check and it could be safely expanded to cover any OS
with UNIX sockets.

t/httpd-unix.t

index f7881cfaf0094eb892a5ec80f11b99b6653ff3f0..ceec127caa366b0001c1ba688891ce30875747b8 100644 (file)
@@ -59,7 +59,7 @@ sub check_sock ($) {
 check_sock($unix);
 
 { # do not clobber existing socket
-       my %err = ( 'linux' => EADDRINUSE );
+       my %err = ( 'linux' => EADDRINUSE, 'freebsd' => EADDRINUSE );
        open my $out, '>>', "$tmpdir/1" or die "redirect failed: $!";
        open my $err, '>>', "$tmpdir/2" or die "redirect failed: $!";
        my $cmd = ['-httpd', '-l', $unix, '-W0', $psgi];