aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/vim_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-06-13 11:23:40 +0200
committerGitHub <noreply@github.com>2022-06-13 11:23:40 +0200
commit2f71d4708e997454a0d05d51122a56146b89af92 (patch)
treea84c5cb8f02bee2ab6e3d67c3db5f50d594e4ee4 /test/functional/lua/vim_spec.lua
parenta68f5fccb3197116ff54898796486bcbc816ce10 (diff)
parente3281d992e1b9366d67a4b4399e3b5e11bb6c1cc (diff)
downloadrneovim-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/lua/vim_spec.lua')
-rw-r--r--test/functional/lua/vim_spec.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua
index fd05e6ec0b..861f85674f 100644
--- a/test/functional/lua/vim_spec.lua
+++ b/test/functional/lua/vim_spec.lua
@@ -22,7 +22,7 @@ local remove_trace = helpers.remove_trace
local mkdir_p = helpers.mkdir_p
local rmdir = helpers.rmdir
local write_file = helpers.write_file
-
+local expect_exit = helpers.expect_exit
describe('lua stdlib', function()
before_each(clear)
@@ -2677,9 +2677,7 @@ describe('lua: builtin modules', function()
it('does not work when disabled without runtime', function()
clear{args={'--luamod-dev'}, env={VIMRUNTIME='fixtures/a'}}
- -- error checking could be better here. just check that --luamod-dev
- -- does anything at all by breaking with missing runtime..
- eq(nil, exec_lua[[return vim.tbl_count {x=1,y=2}]])
+ expect_exit(exec_lua, [[return vim.tbl_count {x=1,y=2}]])
end)
end)