<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Sergey,<br>
</p>
<div class="moz-cite-prefix">On 21.08.2024 11:58, Sergey Kaplun
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20a59d0f077cdf8ed07a612c19578af430a943cf.1724228998.git.skaplun@tarantool.org">
<pre class="moz-quote-pre" wrap="">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
---</pre>
</blockquote>
thanks for the patch! LGTM<br>
<blockquote type="cite"
cite="mid:20a59d0f077cdf8ed07a612c19578af430a943cf.1724228998.git.skaplun@tarantool.org">
<pre class="moz-quote-pre" wrap="">
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
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>