functests: Fix tests

This commit is contained in:
ZyX
2015-10-23 15:56:38 +03:00
parent 6b17d35ff1
commit e5537a935f
2 changed files with 4 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ describe('server -> client', function()
describe('when the client is a recursive vim instance', 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'))
end)

View File

@@ -29,9 +29,11 @@ describe(':preserve', function()
it("saves to custom 'directory' and (R)ecovers (issue #1836)", function()
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 = [[
set swapfile fileformat=unix undolevels=-1
set directory^=]]..swapdir..[[//
set swapfile fileformat=unix undolevels=-1
]]
source(init)