From bb714732eaedea0a26c21729b22b1d88feffb163 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 21 Oct 2025 17:18:58 +0200 Subject: [PATCH] regression-tests.dnsdist: detect function absence and report it better --- regression-tests.dnsdist/test_Lua.py | 1 + 1 file changed, 1 insertion(+) diff --git a/regression-tests.dnsdist/test_Lua.py b/regression-tests.dnsdist/test_Lua.py index d81054f2b3..3342fa2009 100644 --- a/regression-tests.dnsdist/test_Lua.py +++ b/regression-tests.dnsdist/test_Lua.py @@ -101,6 +101,7 @@ class TestLuaFrontendBindings(DNSDistTest): -- check that all these methods return nil on a non-existing entry functions = { 'getServer', 'getDNSCryptBind', 'getBind', 'getDOQFrontend', 'getDOH3Frontend', 'getDOHFrontend', 'getTLSFrontend'} for _, func in ipairs(functions) do + assert(_G[func] ~= nil, "function "..func.." not compiled in, cannot test") assert(_G[func](42) == nil, "function "..func.." did not return nil as expected") end -- 2.47.3