aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-09-20 09:46:16 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-09-20 11:08:14 +0200
commit911421d328a91a56389248fe27bee6c95784d95f (patch)
tree6a5dc23a6291a95af4190e1950f6a5da60894a4a
parent13e57246216c946594862938a392e4b8fab4e8b4 (diff)
downloadrneovim-911421d328a91a56389248fe27bee6c95784d95f.tar.gz
rneovim-911421d328a91a56389248fe27bee6c95784d95f.tar.bz2
rneovim-911421d328a91a56389248fe27bee6c95784d95f.zip
test: legacy/012_directory_spec: Also use dot-prefix on Windows.
win32 handles dot-prefixed files just fine; Nvim-on-Windows does not perpetuate the Vim-on-Windows behavior of avoiding dot-prefixed files.
-rw-r--r--test/functional/legacy/012_directory_spec.lua12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/functional/legacy/012_directory_spec.lua b/test/functional/legacy/012_directory_spec.lua
index 686b6177d8..cef31ae405 100644
--- a/test/functional/legacy/012_directory_spec.lua
+++ b/test/functional/legacy/012_directory_spec.lua
@@ -53,27 +53,21 @@ describe("'directory' option", function()
execute('set dir=.,~')
-- sanity check: files should not exist yet.
- eq(nil, lfs.attributes('.Xtest1.swp')) -- unix
- eq(nil, lfs.attributes('Xtest1.swp')) -- non-unix
+ eq(nil, lfs.attributes('.Xtest1.swp'))
execute('e! Xtest1')
wait()
eq('Xtest1', eval('buffer_name("%")'))
-- Verify that the swapfile exists. In the legacy test this was done by
-- reading the output from :!ls.
- if eval('has("unix")') == 1 then
- neq(nil, lfs.attributes('.Xtest1.swp'))
- else
- neq(nil, lfs.attributes('Xtest1.swp'))
- end
+ neq(nil, lfs.attributes('.Xtest1.swp'))
execute('set dir=./Xtest2,.,~')
execute('e Xtest1')
wait()
-- swapfile should no longer exist in CWD.
- eq(nil, lfs.attributes('.Xtest1.swp')) -- unix
- eq(nil, lfs.attributes('Xtest1.swp')) -- non-unix
+ eq(nil, lfs.attributes('.Xtest1.swp'))
eq({ "Xtest1.swp", "Xtest3" }, ls_dir_sorted("Xtest2"))