aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun T <takimoto-j@kba.biglobe.ne.jp>2016-02-11 22:57:06 +0900
committerJun T <takimoto-j@kba.biglobe.ne.jp>2016-02-12 00:03:39 +0900
commitedbc97225d47f67f00dcc2415cd1b402752f139c (patch)
treeb3775bfea835608180d52f8c0b2f6d72ebbbaed2
parentadb73b60256048cf36a53d6ff714ca9e7c6134bd (diff)
downloadrneovim-edbc97225d47f67f00dcc2415cd1b402752f139c.tar.gz
rneovim-edbc97225d47f67f00dcc2415cd1b402752f139c.tar.bz2
rneovim-edbc97225d47f67f00dcc2415cd1b402752f139c.zip
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.
-rw-r--r--test/functional/shada/shada_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/shada/shada_spec.lua b/test/functional/shada/shada_spec.lua
index 2bc855a239..822ab3913c 100644
--- a/test/functional/shada/shada_spec.lua
+++ b/test/functional/shada/shada_spec.lua
@@ -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)