aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/delete_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/delete_spec.lua')
-rw-r--r--test/functional/legacy/delete_spec.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/legacy/delete_spec.lua b/test/functional/legacy/delete_spec.lua
index b69caa6ef7..9ea3269828 100644
--- a/test/functional/legacy/delete_spec.lua
+++ b/test/functional/legacy/delete_spec.lua
@@ -4,6 +4,9 @@ local eq, eval, command = helpers.eq, helpers.eval, helpers.command
describe('Test for delete()', function()
before_each(clear)
+ after_each(function()
+ os.remove('Xfile')
+ end)
it('file delete', function()
command('split Xfile')
@@ -52,8 +55,7 @@ describe('Test for delete()', function()
silent !ln -s Xfile Xlink
endif
]])
- if eval('v:shell_error') == 1 then
- eq(0, eval("delete('Xfile')"))
+ if eval('v:shell_error') ~= 0 then
pending('Cannot create symlink', function()end)
end
-- Delete the link, not the file