aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/012_directory_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/012_directory_spec.lua')
-rw-r--r--test/functional/legacy/012_directory_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/legacy/012_directory_spec.lua b/test/functional/legacy/012_directory_spec.lua
index 44e1c14d78..686b6177d8 100644
--- a/test/functional/legacy/012_directory_spec.lua
+++ b/test/functional/legacy/012_directory_spec.lua
@@ -36,6 +36,7 @@ describe("'directory' option", function()
clear()
end)
teardown(function()
+ execute('qall!')
helpers.rmdir('Xtest.je')
helpers.rmdir('Xtest2')
os.remove('Xtest1')
@@ -71,15 +72,14 @@ describe("'directory' option", function()
wait()
-- swapfile should no longer exist in CWD.
- eq(nil, lfs.attributes('.Xtest1.swp')) -- for unix
- eq(nil, lfs.attributes('Xtest1.swp')) -- for other systems
+ eq(nil, lfs.attributes('.Xtest1.swp')) -- unix
+ eq(nil, lfs.attributes('Xtest1.swp')) -- non-unix
eq({ "Xtest1.swp", "Xtest3" }, ls_dir_sorted("Xtest2"))
execute('set dir=Xtest.je,~')
execute('e Xtest2/Xtest3')
eq(1, eval('&swapfile'))
- execute('swap')
wait()
eq({ "Xtest3" }, ls_dir_sorted("Xtest2"))