diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-13 11:23:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 11:23:40 +0200 |
commit | 2f71d4708e997454a0d05d51122a56146b89af92 (patch) | |
tree | a84c5cb8f02bee2ab6e3d67c3db5f50d594e4ee4 /test/functional/helpers.lua | |
parent | a68f5fccb3197116ff54898796486bcbc816ce10 (diff) | |
parent | e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc (diff) | |
download | rneovim-2f71d4708e997454a0d05d51122a56146b89af92.tar.gz rneovim-2f71d4708e997454a0d05d51122a56146b89af92.tar.bz2 rneovim-2f71d4708e997454a0d05d51122a56146b89af92.zip |
Merge pull request #18902 from bfredl/fulexit
fix(tests): check for EOF in requests to nvim properly
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 7 |
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) |