aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 7c923351ab..ffb5694c15 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -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)