From 48ad9d436cf80f58c107774c313a561d852148a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= <vladimir.cunat@nic.cz>
Date: Wed, 24 Aug 2022 11:51:49 +0200
Subject: [PATCH] tests/config: skip `freebind` sub-test on macOS

That option isn't supported there, so the test wouldn't work.
Now the config tests work for me on x86 macOS.
---
 tests/config/net.test.lua | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/config/net.test.lua b/tests/config/net.test.lua
index 63b78554c..589bf61bb 100644
--- a/tests/config/net.test.lua
+++ b/tests/config/net.test.lua
@@ -9,6 +9,9 @@ local function test_env_no_listen()
 end
 
 local function test_freebind()
+	if require('jit').os == 'OSX' then
+		return 77 -- freebind is not supported on macOS
+	end
 	boom(net.listen, {'192.0.2.1', 50049},
 		'net.listen() without freebind should fail')
 	-- TODO: same(kr_table_len(net.list()), 0,
-- 
GitLab