From: Eric Wong Date: Thu, 28 Nov 2019 07:08:54 +0000 (+0000) Subject: t/httpd-unix: FreeBSD expects to fail with EADDRINUSE X-Git-Tag: v1.3.0~247 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0fc77a8ed5d65681cc8f4233c0f15353052d28ff;p=public-inbox.git t/httpd-unix: FreeBSD expects to fail with EADDRINUSE 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. --- diff --git a/t/httpd-unix.t b/t/httpd-unix.t index f7881cfa..ceec127c 100644 --- a/t/httpd-unix.t +++ b/t/httpd-unix.t @@ -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];