[Tarantool-patches] [PATCH luajit 34/36] test: enable <misc/wbarrier.lua> LuaJIT test
Sergey Kaplun
skaplun at tarantool.org
Wed Aug 14 16:56:16 MSK 2024
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
---
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
--
2.45.2
More information about the Tarantool-patches
mailing list