[Tarantool-patches] [PATCH luajit v3 28/29] test: disable PUC-Rio hanging GC test

Sergey Kaplun skaplun at tarantool.org
Tue Apr 13 16:27:28 MSK 2021


Tarantool has too many alive objects at start. `gcinfo()` result is
always greater than 1000 expected by the test. It leads to infinite loop
in the test.

This patch disables the GC test leading to Tarantool binary hang.

Part of tarantool/tarantool#5845
Part of tarantool/tarantool#4473
---
 test/PUC-Rio-Lua-5.1-tests/gc.lua | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/PUC-Rio-Lua-5.1-tests/gc.lua b/test/PUC-Rio-Lua-5.1-tests/gc.lua
index b6925b69..10e1f2dd 100644
--- a/test/PUC-Rio-Lua-5.1-tests/gc.lua
+++ b/test/PUC-Rio-Lua-5.1-tests/gc.lua
@@ -133,9 +133,12 @@ do
     local a = {}
   until gcinfo() > 1000
   collectgarbage"restart"
-  repeat
-    local a = {}
-  until gcinfo() < 1000
+  -- LuaJIT: Tarantool has too many alive objects at start.
+  -- `gcinfo()` result is always greater than 1000.
+  -- The test is disabled for Tarantool binary.
+  -- repeat
+  --   local a = {}
+  -- until gcinfo() < 1000
 end
 
 lim = 15
-- 
2.31.0



More information about the Tarantool-patches mailing list