diff options
author | erw7 <erw7.github@gmail.com> | 2019-08-17 13:46:01 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2019-08-17 14:44:52 +0900 |
commit | cc903210c9e276b34f60f0af25ba9d15f9a55370 (patch) | |
tree | f6f6ebbd6177174ebc60ed24e2430793dccbd3b9 | |
parent | 44b3488db228f9a6b3af442cd2083d7e6f9a2e99 (diff) | |
download | rneovim-cc903210c9e276b34f60f0af25ba9d15f9a55370.tar.gz rneovim-cc903210c9e276b34f60f0af25ba9d15f9a55370.tar.bz2 rneovim-cc903210c9e276b34f60f0af25ba9d15f9a55370.zip |
Fix test failure on Windows [skip travis]
-rw-r--r-- | src/nvim/testdir/shared.vim | 12 |
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. |