mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
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 #4015)
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user