about summary refs log tree commit homepage
path: root/t/httpd-unix.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-28 07:08:54 +0000
committerEric Wong <e@80x24.org>2019-11-28 20:38:48 +0000
commit0fc77a8ed5d65681cc8f4233c0f15353052d28ff (patch)
tree7ef38ba85a0fba0954a44ec80295b7699b8e22dd /t/httpd-unix.t
parentd8c459e4a2b4f9da3239d16b649cfeba3f663a7f (diff)
downloadpublic-inbox-0fc77a8ed5d65681cc8f4233c0f15353052d28ff.tar.gz
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.
Diffstat (limited to 't/httpd-unix.t')
-rw-r--r--t/httpd-unix.t2
1 files changed, 1 insertions, 1 deletions
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];