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

@@ -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)