Skip to content

Commit

Permalink
test: enable <misc/wbarrier_jit.lua> LuaJIT test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Buristan committed Aug 12, 2024
1 parent 66d899d commit b7fb987
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/LuaJIT-tests/misc/wbarrier_jit.lua

This file was deleted.

1 change: 1 addition & 0 deletions test/LuaJIT-tests/trace/index
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ stitch.lua
tcall_base.lua
tcall_loop.lua
unordered_jit.lua
wbarrier.lua
16 changes: 16 additions & 0 deletions test/LuaJIT-tests/trace/wbarrier.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b7fb987

Please sign in to comment.