aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-01-31 19:58:33 +0100
committerGitHub <noreply@github.com>2023-01-31 19:58:33 +0100
commit8376486e8ff1722a0760443fc4a402bdea632dda (patch)
tree141fe889c2f2130d1084513a44399e482efba161 /test/unit/helpers.lua
parent8b11cf5092e0dfe45ee0f9cf0b72ce4ddeb8740c (diff)
parent13aa23b62af4df3e7f10687b76fe8c04efa2a598 (diff)
downloadrneovim-8376486e8ff1722a0760443fc4a402bdea632dda.tar.gz
rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.tar.bz2
rneovim-8376486e8ff1722a0760443fc4a402bdea632dda.zip
Merge pull request #17537 from bfredl/neolua
refactor(tests): run unittests using main nvim binary - delete separate nvim-test build
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index 14d8eda357..686af3b461 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -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