aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/testdir/shared.vim12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim
index ab0a4fd706..2169fbc4db 100644
--- a/src/nvim/testdir/shared.vim
+++ b/src/nvim/testdir/shared.vim
@@ -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.