mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.0856: MS-Windows: executable not found when running test
Problem: MS-Windows: executable not found when running individual test. Solution: Also look for vimd.exe. (Christopher Plewright, closes #11525)
This commit is contained in:
committed by
Bram Moolenaar
parent
09a93e3e66
commit
d55bfcaa9b
@@ -231,14 +231,31 @@ func s:feedkeys(timer)
|
|||||||
call feedkeys('x', 'nt')
|
call feedkeys('x', 'nt')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Get the name of the Vim executable that we expect has been build in the src
|
||||||
|
" directory.
|
||||||
|
func s:GetJustBuildVimExe()
|
||||||
|
if has("win32")
|
||||||
|
if !filereadable('..\vim.exe') && filereadable('..\vimd.exe')
|
||||||
|
" looks like the debug executable was intentionally build, so use it
|
||||||
|
return '..\vimd.exe'
|
||||||
|
endif
|
||||||
|
return '..\vim.exe'
|
||||||
|
endif
|
||||||
|
return '../vim'
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Get $VIMPROG to run the Vim executable.
|
" Get $VIMPROG to run the Vim executable.
|
||||||
" The Makefile writes it as the first line in the "vimcmd" file.
|
" The Makefile writes it as the first line in the "vimcmd" file.
|
||||||
|
" Falls back to the Vim executable in the src directory.
|
||||||
func GetVimProg()
|
func GetVimProg()
|
||||||
if !filereadable('vimcmd')
|
if filereadable('vimcmd')
|
||||||
" Assume the script was sourced instead of running "make".
|
return readfile('vimcmd')[0]
|
||||||
return '../vim'
|
|
||||||
endif
|
endif
|
||||||
return readfile('vimcmd')[0]
|
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 s:GetJustBuildVimExe()
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
let g:valgrind_cnt = 1
|
let g:valgrind_cnt = 1
|
||||||
@@ -246,16 +263,13 @@ let g:valgrind_cnt = 1
|
|||||||
" Get the command to run Vim, with -u NONE and --not-a-term arguments.
|
" Get the command to run Vim, with -u NONE and --not-a-term arguments.
|
||||||
" If there is an argument use it instead of "NONE".
|
" If there is an argument use it instead of "NONE".
|
||||||
func GetVimCommand(...)
|
func GetVimCommand(...)
|
||||||
if !filereadable('vimcmd')
|
if filereadable('vimcmd')
|
||||||
echo 'Cannot read the "vimcmd" file, falling back to ../vim.'
|
|
||||||
if !has("win32")
|
|
||||||
let lines = ['../vim']
|
|
||||||
else
|
|
||||||
let lines = ['..\vim.exe']
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
let lines = readfile('vimcmd')
|
let lines = readfile('vimcmd')
|
||||||
|
else
|
||||||
|
echo 'Cannot read the "vimcmd" file, falling back to ../vim.'
|
||||||
|
let lines = [s:GetJustBuildVimExe()]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:0 == 0
|
if a:0 == 0
|
||||||
let name = 'NONE'
|
let name = 'NONE'
|
||||||
else
|
else
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
856,
|
||||||
/**/
|
/**/
|
||||||
855,
|
855,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user