Mercurial > vim
diff src/testdir/test_functions.vim @ 32922:397ff3169248 v9.0.1769
patch 9.0.1769: executable() ignoring symlinks on Windows
Commit: https://github.com/vim/vim/commit/f5d0f54790fa86dfe73b428a087c8d8e6f391857
Author: AmberArr <me@frost.moe>
Date: Sun Aug 20 20:03:45 2023 +0200
patch 9.0.1769: executable() ignoring symlinks on Windows
Problem: executable() ignoring symlinks on Windows
Solution: resolve reparse points
closes: #12562
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: AmberArr <me@frost.moe>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 20 Aug 2023 20:15:04 +0200 |
parents | 6e53cf9745f4 |
children | 578ffda95ad5 |
line wrap: on
line diff
--- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1818,6 +1818,10 @@ func Test_Executable() let [pathext, $PATHEXT] = [$PATHEXT, '.com;.exe;.bat;.cmd'] call assert_equal(notepadbat, exepath('notepad')) let $PATHEXT = pathext + " check for symbolic link + execute 'silent !mklink np.bat "' .. notepadbat .. '"' + call assert_equal(1, executable('./np.bat')) + call assert_equal(1, executable('./np')) bwipe eval 'Xnotedir'->delete('rf') elseif has('unix')