[Tarantool-patches] [PATCH v2 luajit 14/45] test: refactor <trace/gc.lua> LuaJIT test
Sergey Bronnikov
sergeyb at tarantool.org
Thu Aug 22 17:53:08 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/gc.lua | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/test/LuaJIT-tests/trace/gc.lua b/test/LuaJIT-tests/trace/gc.lua
> index 43d7ae55..f6b40aac 100644
> --- a/test/LuaJIT-tests/trace/gc.lua
> +++ b/test/LuaJIT-tests/trace/gc.lua
> @@ -5,9 +5,9 @@ do --- Collect dead traces.
> collectgarbage()
> -- Prevent the creation of side traces.
> jit.off()
> - for j=1,100 do
> + for _ = 1, 100 do
> jit.on()
> - loadstring("for i=1,100 do end")()
> + loadstring("for _ = 1, 100 do end")()
> jit.off()
> end
> jit.on()
> @@ -29,7 +29,7 @@ do --- Check KGC marking.
> end
> end
> jit.attach(reccb, "record")
> - for i=1,200 do
> + for i = 1, 200 do
> if i % 5 == 0 then
> f = function() end
> elseif f then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20240822/f2f9ce4c/attachment.htm>
More information about the Tarantool-patches
mailing list