diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-03-31 07:29:16 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-31 13:29:16 +0200 |
commit | 11f03ee3f3da623440607220b8167a3b797d9daa (patch) | |
tree | a4201cde26048a1a3a2c6c48e10547f039d8771a /src | |
parent | 9e52255de2a0318fe7fff6d46c7bf60e217bb558 (diff) | |
download | rneovim-11f03ee3f3da623440607220b8167a3b797d9daa.tar.gz rneovim-11f03ee3f3da623440607220b8167a3b797d9daa.tar.bz2 rneovim-11f03ee3f3da623440607220b8167a3b797d9daa.zip |
vim-patch:8.1.1095: win: executable() on very long name #9820
Problem: MS-Windows: executable() fails on very long filename.
Solution: (Ken Takata, closes vim/vim#4015)
https://github.com/vim/vim/commit/8662189736e6cefb3fe852728adb5341f83973cf
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_functions.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index c0faf1acdc..13e2dcf804 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -889,6 +889,17 @@ func Test_Executable() endif endfunc +func Test_executable_longname() + if !has('win32') + return + endif + + let fname = 'X' . repeat('あ', 200) . '.bat' + call writefile([], fname) + call assert_equal(1, executable(fname)) + call delete(fname) +endfunc + func Test_hostname() let hostname_vim = hostname() if has('unix') |