fix(tests): check for EOF on exit of nvim properly

This commit is contained in:
bfredl
2022-06-08 23:22:50 +02:00
parent dd8b6094c0
commit e3281d992e
16 changed files with 74 additions and 56 deletions

View File

@@ -270,6 +270,13 @@ function module.command(cmd)
module.request('nvim_command', cmd)
end
-- use for commands which expect nvim to quit
function module.expect_exit(...)
eq("EOF was received from Nvim. Likely the Nvim process crashed.",
module.pcall_err(...))
end
-- Evaluates a VimL expression.
-- Fails on VimL error, but does not update v:errmsg.
function module.eval(expr)