aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/write_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-05-25 07:42:59 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-05-25 07:43:02 -0400
commite21f454e116441443208f5c31beb01f67191b47a (patch)
treedb3743345c4b071f6517fabadc0452c642fb4054 /test/functional/ex_cmds/write_spec.lua
parent05282069dbbd7f23b7d59358b40df0b3e266833f (diff)
downloadrneovim-e21f454e116441443208f5c31beb01f67191b47a.tar.gz
rneovim-e21f454e116441443208f5c31beb01f67191b47a.tar.bz2
rneovim-e21f454e116441443208f5c31beb01f67191b47a.zip
fixup: always delete Xfile, fix exit code check
after_each + os.remove ensures Xfile is deleted after every test. Windows exit code is inconsistent.
Diffstat (limited to 'test/functional/ex_cmds/write_spec.lua')
-rw-r--r--test/functional/ex_cmds/write_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ex_cmds/write_spec.lua b/test/functional/ex_cmds/write_spec.lua
index 3060fb063b..3f54ff6f41 100644
--- a/test/functional/ex_cmds/write_spec.lua
+++ b/test/functional/ex_cmds/write_spec.lua
@@ -40,7 +40,7 @@ describe(':write', function()
else
command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
end
- if eval('v:shell_error') == 1 then
+ if eval('v:shell_error') ~= 0 then
pending('Cannot create symlink', function()end)
end
source([[
@@ -60,7 +60,7 @@ describe(':write', function()
else
command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
end
- if eval('v:shell_error') == 1 then
+ if eval('v:shell_error') ~= 0 then
pending('Cannot create symlink', function()end)
end
source([[