[Tarantool-patches] [PATCH v2 luajit 33/45] test: refactor <trace/stack_purge.lua> LuaJIT test

Sergey Bronnikov sergeyb at tarantool.org
Thu Aug 22 16:49:28 MSK 2024


Sergey,

On 21.08.2024 11:58, Sergey Kaplun wrote:
> This patch refactors the aforementioned test to make its code style
> closer to ours.
>
> Relates to tarantool/tarantool#9398
> ---
thanks for the patch! LGTM
>   test/LuaJIT-tests/trace/stack_purge.lua | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/test/LuaJIT-tests/trace/stack_purge.lua b/test/LuaJIT-tests/trace/stack_purge.lua
> index 6d2876af..e4108b20 100644
> --- a/test/LuaJIT-tests/trace/stack_purge.lua
> +++ b/test/LuaJIT-tests/trace/stack_purge.lua
> @@ -11,11 +11,11 @@ local function b()
>   end
>   
>   local function c()
> -  for j=1,10 do
> -    for i=1,50 do b() b() b() end
> +  for _ = 1, 10 do
> +    for _ = 1, 50 do b() b() b() end
>       collectgarbage()
>       local t = {}
> -    for i=1,50 do t = {t} end
> +    for _ = 1, 50 do t = {t} end
>     end
>   end
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20240822/065a8b7a/attachment.htm>


More information about the Tarantool-patches mailing list