Skip to content

Commit

Permalink
Add a test for executable()
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Feb 20, 2019
1 parent b184c50 commit 4a0a14c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/testdir/test_functions.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4a0a14c

Please sign in to comment.