diff options
author | ZyX <kp-pav@yandex.ru> | 2016-11-01 09:52:31 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-11 23:23:30 +0300 |
commit | 3adecd3ede8bc3abbd779352e73fd3095c670def (patch) | |
tree | 694b74ad0d202abbaed283e80ffdddef0bbcc21d /test/unit/helpers.lua | |
parent | 9f29a76cab2d36edfa1d94b6cb81cdaa29ab93f6 (diff) | |
download | rneovim-3adecd3ede8bc3abbd779352e73fd3095c670def.tar.gz rneovim-3adecd3ede8bc3abbd779352e73fd3095c670def.tar.bz2 rneovim-3adecd3ede8bc3abbd779352e73fd3095c670def.zip |
unittests: Do not use syscall library: does not work well with cimport
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index b8c1c5fc16..20fdf6f85d 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -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 |