]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests/config: skip `freebind` sub-test on macOS
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 24 Aug 2022 09:51:49 +0000 (11:51 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 24 Aug 2022 10:43:10 +0000 (12:43 +0200)
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

index 63b78554c3382acdb3c7917f217f17bae8e523f0..589bf61bbaeef4f90a108e438b7b28df0e722601 100644 (file)
@@ -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,