unittests: Do not use syscall library: does not work well with cimport

This commit is contained in:
ZyX 2016-11-01 09:52:31 +03:00
parent 9f29a76cab
commit 3adecd3ede

View File

@ -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