mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	unit tests: helpers.lua: hack to avoid empty popen() result
This commit is contained in:
		| @@ -64,10 +64,15 @@ function cimport(...) | |||||||
|     return libnvim |     return libnvim | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   -- preprocess the header |   -- require 'pl.pretty'.dump(paths) | ||||||
|   local stream = Preprocess.preprocess_stream(unpack(paths)) |   local body = nil | ||||||
|   local body = stream:read("*a") |   for i=1, 3 do | ||||||
|   stream:close() |     local stream = Preprocess.preprocess_stream(unpack(paths)) | ||||||
|  |     body = stream:read("*a") | ||||||
|  |     stream:close() | ||||||
|  |     if body ~= nil then break end | ||||||
|  |   end | ||||||
|  |   -- require 'pl.pretty'.dump(body) | ||||||
|  |  | ||||||
|   -- format it (so that the lines are "unique" statements), also filter out |   -- format it (so that the lines are "unique" statements), also filter out | ||||||
|   -- Objective-C blocks |   -- Objective-C blocks | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes