From ca8694a69d2a91032337bc1141c954ba0df5002f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 4 Feb 2025 06:45:14 +0800 Subject: 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 --- test/old/testdir/test_compiler.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/old/testdir/test_compiler.vim b/test/old/testdir/test_compiler.vim index f9e7bf042d..1310cbadfc 100644 --- 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 -- cgit