mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
unittests: Do not use syscall library: does not work well with cimport
This commit is contained in:
parent
9f29a76cab
commit
3adecd3ede
@ -96,8 +96,6 @@ cimportstr = function(body)
|
||||
print(lnum, line)
|
||||
end
|
||||
end
|
||||
body = body:gsub('//.*', '')
|
||||
body = body:gsub('/%*.*%*/', '')
|
||||
body = formatc(body)
|
||||
body = filter_complex_blocks(body)
|
||||
|
||||
@ -139,10 +137,6 @@ cimportstr = function(body)
|
||||
return libnvim
|
||||
end
|
||||
|
||||
ffi.cdef = cimportstr
|
||||
local syscall = require('syscall')
|
||||
ffi.cdef = cdef
|
||||
|
||||
local function cppimport(path)
|
||||
return cimport(Paths.test_include_path .. '/' .. path)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user