mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	win: test: don't test symlink if not admin user
This commit is contained in:
		@@ -40,6 +40,9 @@ describe(':write', function()
 | 
			
		||||
    else
 | 
			
		||||
      command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
 | 
			
		||||
    end
 | 
			
		||||
    if eval('v:shell_error') == 1 then
 | 
			
		||||
      pending('Cannot create symlink', function()end)
 | 
			
		||||
    end
 | 
			
		||||
    source([[
 | 
			
		||||
      edit test_bkc_link.txt
 | 
			
		||||
      call setline(1, ['content1'])
 | 
			
		||||
@@ -57,6 +60,9 @@ describe(':write', function()
 | 
			
		||||
    else
 | 
			
		||||
      command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
 | 
			
		||||
    end
 | 
			
		||||
    if eval('v:shell_error') == 1 then
 | 
			
		||||
      pending('Cannot create symlink', function()end)
 | 
			
		||||
    end
 | 
			
		||||
    source([[
 | 
			
		||||
      edit test_bkc_link.txt
 | 
			
		||||
      call setline(1, ['content1'])
 | 
			
		||||
 
 | 
			
		||||
@@ -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