mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	test: shada_spec: resolve symlink
If the build directory path has symlinks in it, 'make functionaltest' fails at shada_spec.lua:177 because readme_fname has symlink but nvim resolves the symlink when writing it into the shada file.
This commit is contained in:
		@@ -174,6 +174,7 @@ describe('ShaDa support code', function()
 | 
			
		||||
    nvim_command('set shada+=%')
 | 
			
		||||
    nvim_command('wshada! ' .. shada_fname)
 | 
			
		||||
    local readme_fname = paths.test_source_path .. '/README.md'
 | 
			
		||||
    readme_fname = helpers.eval( 'resolve("' .. readme_fname .. '")' )
 | 
			
		||||
    eq({[7]=1, [8]=2, [9]=1, [10]=4, [11]=1}, find_file(readme_fname))
 | 
			
		||||
    nvim_command('set shada+=r~')
 | 
			
		||||
    nvim_command('wshada! ' .. shada_fname)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user