mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
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)
8662189736
This commit is contained in:

committed by
Justin M. Keyes

parent
9e52255de2
commit
11f03ee3f3
@@ -889,6 +889,17 @@ func Test_Executable()
|
|||||||
endif
|
endif
|
||||||
endfunc
|
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()
|
func Test_hostname()
|
||||||
let hostname_vim = hostname()
|
let hostname_vim = hostname()
|
||||||
if has('unix')
|
if has('unix')
|
||||||
|
Reference in New Issue
Block a user