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:
Jan Edmund Lazo
2026-04-13 01:19:35 -04:00
committed by GitHub
parent bbd880ca2e
commit 09d4eba92b

View File

@@ -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