Mercurial > vim
diff src/testdir/test_functions.vim @ 16945:efd36a9052cc v8.1.1473
patch 8.1.1473: new resolve() implementation causes problem for plugins
commit https://github.com/vim/vim/commit/4a792c87b9a643a949ee36106a2f7e971dc633f8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 6 12:22:41 2019 +0200
patch 8.1.1473: new resolve() implementation causes problem for plugins
Problem: New resolve() implementation causes problem for plugins.
Solution: Only resolve a resparse point after checking it is needed. (Ken
Takata, closes #4492)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 12:30:05 +0200 |
parents | f42aa3d90b12 |
children | d03a52e02f1a |
line wrap: on
line diff
--- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -276,6 +276,7 @@ func Test_resolve_win32() " test for symbolic link to a file new Xfile wq + call assert_equal('Xfile', resolve('Xfile')) silent !mklink Xlink Xfile if !v:shell_error call assert_equal(s:normalize_fname(getcwd() . '\Xfile'), s:normalize_fname(resolve('./Xlink'))) @@ -333,11 +334,14 @@ func Test_resolve_win32() " test for reparse point call mkdir('Xdir') + call assert_equal('Xdir', resolve('Xdir')) silent !mklink /D Xdirlink Xdir if !v:shell_error w Xdir/text.txt + call assert_equal('Xdir/text.txt', resolve('Xdir/text.txt')) call assert_equal(s:normalize_fname(getcwd() . '\Xdir\text.txt'), s:normalize_fname(resolve('Xdirlink\text.txt'))) call assert_equal(s:normalize_fname(getcwd() . '\Xdir'), s:normalize_fname(resolve('Xdirlink'))) + call delete('Xdirlink') else echomsg 'skipped test for reparse point' endif