[Tarantool-patches] [PATCH v2 luajit 30/45] test: enable <misc/stack_gc.lua> LuaJIT test
Sergey Bronnikov
sergeyb at tarantool.org
Thu Aug 22 16:46:01 MSK 2024
Sergey,
On 21.08.2024 11:58, Sergey Kaplun wrote:
> This patch moves the aforementioned test from the <misc> to the <lang/>
> directory (with slightly renaming to be consistent with other names),
> includes it in <index>, and names the subtests.
>
> Part of tarantool/tarantool#9398
> ---
thanks for the patch! LGTM
> test/LuaJIT-tests/{misc/stack_gc.lua => lang/gc_stack.lua} | 4 +---
> test/LuaJIT-tests/lang/index | 1 +
> 2 files changed, 2 insertions(+), 3 deletions(-)
> rename test/LuaJIT-tests/{misc/stack_gc.lua => lang/gc_stack.lua} (91%)
>
> diff --git a/test/LuaJIT-tests/misc/stack_gc.lua b/test/LuaJIT-tests/lang/gc_stack.lua
> similarity index 91%
> rename from test/LuaJIT-tests/misc/stack_gc.lua
> rename to test/LuaJIT-tests/lang/gc_stack.lua
> index 656a06a0..cd3d8f90 100644
> --- a/test/LuaJIT-tests/misc/stack_gc.lua
> +++ b/test/LuaJIT-tests/lang/gc_stack.lua
> @@ -1,5 +1,4 @@
> -
> -do
> +do --- Marking sparse stack.
> local t = setmetatable({}, { __index=function(t, k)
> k = k - 1
> if k == 0 then
> @@ -12,4 +11,3 @@ do
> end})
> local x = t[50]
> end
> -
> diff --git a/test/LuaJIT-tests/lang/index b/test/LuaJIT-tests/lang/index
> index 5c9e7ea4..b262c555 100644
> --- a/test/LuaJIT-tests/lang/index
> +++ b/test/LuaJIT-tests/lang/index
> @@ -26,6 +26,7 @@ tail_recursion.lua
> vararg_jit.lua
> gc.lua
> gc_debug.lua
> +gc_stack.lua
> gc_step.lua
> goto.lua +goto
> meta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20240822/9660e486/attachment.htm>
More information about the Tarantool-patches
mailing list