mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	unittests: Do not use syscall library: does not work well with cimport
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user