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

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