Description: Disabling testLuaDestructors This test uncoveres an issue that can lead to memory leaks on certain architures, especially when not compiled with LuaJIT. See the referenced issue, linked in Bug below for details. Author: Tobias Frost Bug: https://github.com/minetest/minetest/issues/12778 Forwarded: not-needed Last-Update: 2022-09-20 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/src/unittest/test_lua.cpp +++ b/src/unittest/test_lua.cpp @@ -52,7 +52,7 @@ void testCxxExceptions(); }; -static TestLua g_test_instance; +// static TestLua g_test_instance; void TestLua::runTests(IGameDef *gamedef) { @@ -87,8 +87,9 @@ void TestLua::testLuaDestructors() { + return; bool did_destruct = false; lua_State *L = luaL_newstate(); lua_cpcall(L, [](lua_State *L) -> int { DestructorDetector d(reinterpret_cast(lua_touserdata(L, 1)));