mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
adb73b6025
commit
edbc97225d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user