neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ca8694a69d2a91032337bc1141c954ba0df5002f
parent 89c294514853ee4849855f880d6d7ff349494c4d
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue,  4 Feb 2025 06:45:14 +0800

vim-patch:9.1.1073: tests: test_compiler fails on Windows without Maven

Problem:  tests: test_compiler fails on Windows without Maven.
Solution: Add Xspotbugs directory to $PATH when mvn is not available
          (zeertzjq).

closes: vim/vim#16576

https://github.com/vim/vim/commit/23da16d3d023a20565dc29128208e6cb095231d9

Diffstat:
Mtest/old/testdir/test_compiler.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/test/old/testdir/test_compiler.vim b/test/old/testdir/test_compiler.vim @@ -411,8 +411,10 @@ func Test_compiler_spotbugs_properties() " TEST INTEGRATION WITH A SUPPORTED COMPILER PLUGIN. if filereadable($VIMRUNTIME .. '/compiler/maven.vim') + let save_PATH = $PATH if !executable('mvn') if has('win32') + let $PATH = 'Xspotbugs;' .. $PATH " This is what ":help executable()" suggests. call writefile([], 'Xspotbugs/mvn.cmd') else @@ -700,6 +702,7 @@ func Test_compiler_spotbugs_properties() bwipeout setlocal makeprg= + let $PATH = save_PATH endif filetype plugin off