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

@@ -14,6 +14,7 @@ local pesc = helpers.pesc
local rmdir = helpers.rmdir
local sleep = helpers.sleep
local meths = helpers.meths
local expect_exit = helpers.expect_exit
local file_prefix = 'Xtest-functional-ex_cmds-mksession_spec'
@@ -44,7 +45,7 @@ describe(':mksession', function()
command('mksession '..session_file)
-- Create a new test instance of Nvim.
command('qall!')
expect_exit(command, 'qall!')
clear()
-- Restore session.
command('source '..session_file)
@@ -113,7 +114,7 @@ describe(':mksession', function()
if iswin() then
sleep(100) -- Make sure all child processes have exited.
end
command('qall!')
expect_exit(command, 'qall!')
-- Create a new test instance of Nvim.
clear()
@@ -156,7 +157,7 @@ describe(':mksession', function()
command('cd '..cwd_dir)
command('mksession '..session_path)
command('qall!')
expect_exit(command, 'qall!')
-- Create a new test instance of Nvim.
clear()