mirror of
https://github.com/neovim/neovim.git
synced 2026-05-02 12:04:58 +00:00
unittests: Do not import libnvim or headers in main process
Slows down unit tests much, but gets rid of as much preserved state as possible.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
local helpers = require 'test.unit.helpers'
|
||||
local helpers = require('test.unit.helpers')(after_each)
|
||||
local itp = helpers.gen_itp(it)
|
||||
|
||||
local prof = helpers.cimport './src/nvim/profile.h'
|
||||
local cimport = helpers.cimport
|
||||
local ffi = helpers.ffi
|
||||
local eq = helpers.eq
|
||||
local neq = helpers.neq
|
||||
|
||||
local prof = cimport('./src/nvim/profile.h')
|
||||
|
||||
local function split(inputstr, sep)
|
||||
if sep == nil then
|
||||
sep = "%s"
|
||||
|
||||
Reference in New Issue
Block a user