mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
unit tests: helpers.lua: hack to avoid empty popen() result
This commit is contained in:
parent
7577c31ed0
commit
c76feb338a
@ -64,10 +64,15 @@ function cimport(...)
|
||||
return libnvim
|
||||
end
|
||||
|
||||
-- preprocess the header
|
||||
local stream = Preprocess.preprocess_stream(unpack(paths))
|
||||
local body = stream:read("*a")
|
||||
stream:close()
|
||||
-- require 'pl.pretty'.dump(paths)
|
||||
local body = nil
|
||||
for i=1, 3 do
|
||||
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
|
||||
-- Objective-C blocks
|
||||
|
Loading…
Reference in New Issue
Block a user