From 0fc77a8ed5d65681cc8f4233c0f15353052d28ff Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 28 Nov 2019 07:08:54 +0000 Subject: 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. --- t/httpd-unix.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') 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]; -- cgit v1.2.3-24-ge0c7