mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 08:32:42 +00:00
refactor(tests): run unittests using main nvim binary in interpreter mode
This allows us to get rid of the separate "nvim-test" target
This commit is contained in:
@@ -75,7 +75,8 @@ local function child_cleanup_once(func, ...)
|
||||
end
|
||||
end
|
||||
|
||||
local libnvim = nil
|
||||
-- Unittests are run from debug nvim binary in lua interpreter mode.
|
||||
local libnvim = ffi.C
|
||||
|
||||
local lib = setmetatable({}, {
|
||||
__index = only_separate(function(_, idx)
|
||||
@@ -87,8 +88,6 @@ local lib = setmetatable({}, {
|
||||
})
|
||||
|
||||
local init = only_separate(function()
|
||||
-- load neovim shared library
|
||||
libnvim = ffi.load(Paths.test_libnvim_path)
|
||||
for _, c in ipairs(child_calls_init) do
|
||||
c.func(unpack(c.args))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user