mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
win: test: don't test symlink if not admin user
This commit is contained in:
@@ -52,6 +52,10 @@ describe('Test for delete()', function()
|
||||
silent !ln -s Xfile Xlink
|
||||
endif
|
||||
]])
|
||||
if eval('v:shell_error') == 1 then
|
||||
eq(0, eval("delete('Xfile')"))
|
||||
pending('Cannot create symlink', function()end)
|
||||
end
|
||||
-- Delete the link, not the file
|
||||
eq(0, eval("delete('Xlink')"))
|
||||
eq(-1, eval("delete('Xlink')"))
|
||||
|
Reference in New Issue
Block a user