diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-01-30 20:36:49 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-01-31 19:28:26 +0100 |
commit | 13aa23b62af4df3e7f10687b76fe8c04efa2a598 (patch) | |
tree | b2874af2444d1f8798d3ebde258e05faddebcf3c /test/unit/helpers.lua | |
parent | 42999a8d645ccf880222f0192671b8ce01bde361 (diff) | |
download | rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.tar.gz rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.tar.bz2 rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.zip |
refactor(tests): run unittests using main nvim binary in interpreter mode
This allows us to get rid of the separate "nvim-test" target
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 5 |
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 |