From e3281d992e1b9366d67a4b4399e3b5e11bb6c1cc Mon Sep 17 00:00:00 2001 From: bfredl Date: Wed, 8 Jun 2022 23:22:50 +0200 Subject: fix(tests): check for EOF on exit of nvim properly --- test/functional/lua/vim_spec.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/functional/lua/vim_spec.lua') 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) -- cgit