Mercurial > vim
diff src/testdir/test_functions.vim @ 16180:1eaaa82ececf v8.1.1095
patch 8.1.1095: MS-Windows: executable() fails on very long filename
commit https://github.com/vim/vim/commit/8662189736e6cefb3fe852728adb5341f83973cf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 21:51:28 2019 +0100
patch 8.1.1095: MS-Windows: executable() fails on very long filename
Problem: MS-Windows: executable() fails on very long filename.
Solution: (Ken Takata, closes https://github.com/vim/vim/issues/4015)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 22:00:04 +0100 |
parents | 4850744dc181 |
children | 0761a4c111a7 |
line wrap: on
line diff
--- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -944,6 +944,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')