Fix test failure on Windows [skip travis]

This commit is contained in:
erw7 2019-08-17 13:46:01 +09:00
parent 44b3488db2
commit cc903210c9

View File

@ -202,9 +202,17 @@ endfunc
func GetVimProg()
if empty($NVIM_TEST_ARG0)
" Assume the script was sourced instead of running "make".
return '../../../build/bin/nvim'
if has('win32')
return '..\\..\\..\\build\\bin\\nvim.exe'
else
return '../../../build/bin/nvim'
endif
endif
if has('win32')
return substitute($NVIM_TEST_ARG0, '/', '\\', 'g')
else
return $NVIM_TEST_ARG0
endif
return $NVIM_TEST_ARG0
endfunc
" Get the command to run Vim, with -u NONE and --headless arguments.