mirror of
https://github.com/neovim/neovim.git
synced 2026-07-29 11:58:02 +00:00
vim-patch:9.0.0856: MS-Windows: executable not found when running test (#39002)
Problem: MS-Windows: executable not found when running individual test.
Solution: Also look for vimd.exe. (Christopher Plewright, closes vim/vim#11525)
d55bfcaa9b
Co-authored-by: Christopher Plewright <chris@createng.com>
This commit is contained in:
@@ -253,17 +253,21 @@ endfunc
|
||||
|
||||
" Get $VIMPROG to run the Vim executable.
|
||||
" The Makefile writes it as the first line in the "vimcmd" file.
|
||||
" Falls back to the Vim executable in the src directory.
|
||||
" Nvim: uses $NVIM_TEST_ARG0.
|
||||
func GetVimProg()
|
||||
if empty($NVIM_TEST_ARG0)
|
||||
" Assume the script was sourced instead of running "make".
|
||||
return v:progpath
|
||||
endif
|
||||
if has('win32')
|
||||
return substitute($NVIM_TEST_ARG0, '/', '\\', 'g')
|
||||
else
|
||||
return $NVIM_TEST_ARG0
|
||||
if !empty($NVIM_TEST_ARG0)
|
||||
if has('win32')
|
||||
return substitute($NVIM_TEST_ARG0, '/', '\\', 'g')
|
||||
else
|
||||
return $NVIM_TEST_ARG0
|
||||
endif
|
||||
endif
|
||||
" echo 'Cannot read the "vimcmd" file, falling back to ../vim.'
|
||||
|
||||
" Probably the script was sourced instead of running "make".
|
||||
" We assume Vim was just build in the src directory then.
|
||||
return v:progpath
|
||||
endfunc
|
||||
|
||||
let g:valgrind_cnt = 1
|
||||
|
||||
Reference in New Issue
Block a user