[Tarantool-patches] [PATCH v2 luajit 42/45] test: enable <misc/wbarrier.lua> LuaJIT test
Sergey Bronnikov
sergeyb at tarantool.org
Thu Aug 22 17:51:00 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, includes it in <index>, and names the subtest.
>
> Part of tarantool/tarantool#9398
> ---
thanks for the patch! LGTM
> test/LuaJIT-tests/lang/index | 1 +
> test/LuaJIT-tests/lang/wbarrier.lua | 11 +++++++++++
> test/LuaJIT-tests/misc/wbarrier.lua | 7 -------
> 3 files changed, 12 insertions(+), 7 deletions(-)
> create mode 100644 test/LuaJIT-tests/lang/wbarrier.lua
> delete mode 100644 test/LuaJIT-tests/misc/wbarrier.lua
>
> diff --git a/test/LuaJIT-tests/lang/index b/test/LuaJIT-tests/lang/index
> index 8da748d0..ab4dc45d 100644
> --- a/test/LuaJIT-tests/lang/index
> +++ b/test/LuaJIT-tests/lang/index
> @@ -32,3 +32,4 @@ gc_stack.lua
> gc_step.lua
> goto.lua +goto
> meta
> +wbarrier.lua
> diff --git a/test/LuaJIT-tests/lang/wbarrier.lua b/test/LuaJIT-tests/lang/wbarrier.lua
> new file mode 100644
> index 00000000..3bee865e
> --- /dev/null
> +++ b/test/LuaJIT-tests/lang/wbarrier.lua
> @@ -0,0 +1,11 @@
> +do --- Check write barrier when insert strings.
> + local t = {}
> +
> + for i = 1, 20000 do
> + t[i] = tostring(i)
> + end
> +
> + for i = 1, #t do
> + assert(t[i] == tostring(i))
> + end
> +end
> diff --git a/test/LuaJIT-tests/misc/wbarrier.lua b/test/LuaJIT-tests/misc/wbarrier.lua
> deleted file mode 100644
> index 5536625a..00000000
> --- a/test/LuaJIT-tests/misc/wbarrier.lua
> +++ /dev/null
> @@ -1,7 +0,0 @@
> -local t={}
> -for i=1,20000 do
> - t[i] = tostring(i)
> -end
> -for i=1,#t do
> - assert(t[i] == tostring(i))
> -end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20240822/9e961a96/attachment.htm>
More information about the Tarantool-patches
mailing list