[Tarantool-patches] [PATCH luajit 35/36] test: enable <misc/wbarrier_jit.lua> LuaJIT test
Sergey Kaplun
skaplun at tarantool.org
Wed Aug 14 16:56:17 MSK 2024
This patch moves the aforementioned test from the <misc> to the <trace/>
directory, includes it in <index>, and names the subtests.
Part of tarantool/tarantool#9398
---
test/LuaJIT-tests/misc/wbarrier_jit.lua | 18 ------------------
test/LuaJIT-tests/trace/index | 1 +
test/LuaJIT-tests/trace/wbarrier.lua | 16 ++++++++++++++++
3 files changed, 17 insertions(+), 18 deletions(-)
delete mode 100644 test/LuaJIT-tests/misc/wbarrier_jit.lua
create mode 100644 test/LuaJIT-tests/trace/wbarrier.lua
diff --git a/test/LuaJIT-tests/misc/wbarrier_jit.lua b/test/LuaJIT-tests/misc/wbarrier_jit.lua
deleted file mode 100644
index 2c8dd7fb..00000000
--- a/test/LuaJIT-tests/misc/wbarrier_jit.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-
-do
- local t = {[0]={}}
- for i=1,1e5 do t[i] = {t[i-1]} end
- for i=1,1e5 do assert(t[i][1] == t[i-1]) end
-end
-
-do
- local f
- do
- local x = 0
- function f()
- for i=1,1e5 do x = {i} end
- end
- end
- f()
-end
-
diff --git a/test/LuaJIT-tests/trace/index b/test/LuaJIT-tests/trace/index
index c7fbbe57..5e1c4c2e 100644
--- a/test/LuaJIT-tests/trace/index
+++ b/test/LuaJIT-tests/trace/index
@@ -13,3 +13,4 @@ stitch.lua
tcall_base.lua
tcall_loop.lua
unordered_jit.lua
+wbarrier.lua
diff --git a/test/LuaJIT-tests/trace/wbarrier.lua b/test/LuaJIT-tests/trace/wbarrier.lua
new file mode 100644
index 00000000..625c0ff2
--- /dev/null
+++ b/test/LuaJIT-tests/trace/wbarrier.lua
@@ -0,0 +1,16 @@
+do --- TBAR for HSTORE.
+ local t = {[0]={}}
+ for i = 1, 1e5 do t[i] = {t[i - 1]} end
+ for i = 1, 1e5 do assert(t[i][1] == t[i - 1]) end
+end
+
+do --- OBAR for USTORE.
+ local f
+ do
+ local x = 0
+ function f()
+ for i = 1, 1e5 do x = {i} end
+ end
+ end
+ f()
+end
--
2.45.2
More information about the Tarantool-patches
mailing list