mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fix(tests): use uv.spawn instead of io.popen for unittest helpers
The old implementation of repeated_read_cmd would attempt to run the command multiple times to handle racyness of async output. Code like this should not be written. Instead, use the libuv event loop to read until the process has exited and the pipe has been closed. This causes some previous discarded errors to be propagated. Fix these as well.
This commit is contained in:
@@ -13,8 +13,11 @@ local int_type = t_eval.int_type
|
||||
local flt_type = t_eval.flt_type
|
||||
local type_key = t_eval.type_key
|
||||
|
||||
local api =
|
||||
cimport('./src/nvim/api/private/defs.h', './src/nvim/api/private/t.h', './src/nvim/memory.h')
|
||||
local api = cimport(
|
||||
'./src/nvim/api/private/defs.h',
|
||||
'./src/nvim/api/private/helpers.h',
|
||||
'./src/nvim/memory.h'
|
||||
)
|
||||
|
||||
local obj2lua
|
||||
|
||||
|
||||
Reference in New Issue
Block a user