aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_functions.vim11
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')