mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
fix(tests): check for EOF on exit of nvim properly
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user