Sergey,
thanks for the patch! LGTMThis patch moves the aforementioned test from the <misc> to the <trace/> directory, includes it in <index>, and names the subtest. Part of tarantool/tarantool#9398 ---
test/LuaJIT-tests/trace/index | 1 + test/LuaJIT-tests/{misc => trace}/tcall_base.lua | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) rename test/LuaJIT-tests/{misc => trace}/tcall_base.lua (66%) diff --git a/test/LuaJIT-tests/trace/index b/test/LuaJIT-tests/trace/index index 4826f429..9de3b478 100644 --- a/test/LuaJIT-tests/trace/index +++ b/test/LuaJIT-tests/trace/index @@ -10,3 +10,4 @@ phi snap.lua stack_purge.lua stitch.lua +tcall_base.lua diff --git a/test/LuaJIT-tests/misc/tcall_base.lua b/test/LuaJIT-tests/trace/tcall_base.lua similarity index 66% rename from test/LuaJIT-tests/misc/tcall_base.lua rename to test/LuaJIT-tests/trace/tcall_base.lua index c6c4ae1a..7d8d75e0 100644 --- a/test/LuaJIT-tests/misc/tcall_base.lua +++ b/test/LuaJIT-tests/trace/tcall_base.lua @@ -1,4 +1,3 @@ - local r = 0 local function g() r = r + 1 @@ -14,7 +13,8 @@ local function f() end end -g() -- Compile this loop first. -for i=1,50 do f() end -assert(r == 51) - +do --- Recording tailcall at base slot. + g() -- Compile this loop first. + for i=1,50 do f() end + assert(r == 51) +end