aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-10-23 15:56:38 +0300
committerZyX <kp-pav@yandex.ru>2015-10-23 15:56:51 +0300
commite5537a935f1808da75bb5cbb68c066a67ae08064 (patch)
treea3b81d9111797fcff3ae611d8747eb7577835cf3 /test/functional/ex_cmds
parent6b17d35ff19a56171527b34364c88c820e1bcdc2 (diff)
downloadrneovim-e5537a935f1808da75bb5cbb68c066a67ae08064.tar.gz
rneovim-e5537a935f1808da75bb5cbb68c066a67ae08064.tar.bz2
rneovim-e5537a935f1808da75bb5cbb68c066a67ae08064.zip
functests: Fix tests
Diffstat (limited to 'test/functional/ex_cmds')
-rw-r--r--test/functional/ex_cmds/recover_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/recover_spec.lua b/test/functional/ex_cmds/recover_spec.lua
index a2e0978e63..6749cfaf40 100644
--- a/test/functional/ex_cmds/recover_spec.lua
+++ b/test/functional/ex_cmds/recover_spec.lua
@@ -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)