mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
functests: Fix tests
This commit is contained in:
@@ -118,7 +118,7 @@ describe('server -> client', function()
|
|||||||
|
|
||||||
describe('when the client is a recursive vim instance', function()
|
describe('when the client is a recursive vim instance', function()
|
||||||
before_each(function()
|
before_each(function()
|
||||||
nvim('command', "let vim = rpcstart('"..nvim_prog.."', ['-u', 'NONE', '-i', 'NONE', '--embed'])")
|
nvim('command', "let vim = rpcstart('"..nvim_prog.."', ['-u', 'NONE', '-i', 'NONE', '--cmd', 'set noswapfile', '--embed'])")
|
||||||
neq(0, eval('vim'))
|
neq(0, eval('vim'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@@ -29,9 +29,11 @@ describe(':preserve', function()
|
|||||||
|
|
||||||
it("saves to custom 'directory' and (R)ecovers (issue #1836)", function()
|
it("saves to custom 'directory' and (R)ecovers (issue #1836)", function()
|
||||||
local testfile = 'testfile_recover_spec'
|
local testfile = 'testfile_recover_spec'
|
||||||
|
-- Note: `set swapfile` *must* go after `set directory`: otherwise it may
|
||||||
|
-- attempt to create a swapfile in different directory.
|
||||||
local init = [[
|
local init = [[
|
||||||
set swapfile fileformat=unix undolevels=-1
|
|
||||||
set directory^=]]..swapdir..[[//
|
set directory^=]]..swapdir..[[//
|
||||||
|
set swapfile fileformat=unix undolevels=-1
|
||||||
]]
|
]]
|
||||||
|
|
||||||
source(init)
|
source(init)
|
||||||
|
Reference in New Issue
Block a user