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 body = nil
|
||||||
|
for i=1, 3 do
|
||||||
local stream = Preprocess.preprocess_stream(unpack(paths))
|
local stream = Preprocess.preprocess_stream(unpack(paths))
|
||||||
local body = stream:read("*a")
|
body = stream:read("*a")
|
||||||
stream:close()
|
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