mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 14:25:32 +00:00
test(unit): disable JIT when using mocks (#35913)
This fixes the flaky eval/typval_spec.lua tests.
(cherry picked from commit bfa3e111c2)
This commit is contained in:
committed by
github-actions[bot]
parent
7e724dfa2f
commit
a1b9070754
@@ -347,6 +347,9 @@ local function alloc_log_new()
|
||||
end
|
||||
end
|
||||
end
|
||||
-- JIT-compiled FFI calls cannot call back into Lua, so disable JIT.
|
||||
-- Ref: https://luajit.org/ext_ffi_semantics.html#callback
|
||||
jit.off()
|
||||
end
|
||||
|
||||
log.set_mocks = child_call(log.set_mocks)
|
||||
|
||||
Reference in New Issue
Block a user