From: Vladimír Čunát Date: Wed, 24 Aug 2022 09:51:49 +0000 (+0200) Subject: tests/config: skip `freebind` sub-test on macOS X-Git-Tag: v5.5.3~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48ad9d436cf80f58c107774c313a561d852148a0;p=thirdparty%2Fknot-resolver.git 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. --- 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,