aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-04 06:45:14 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-02-04 06:45:31 +0800
commitca8694a69d2a91032337bc1141c954ba0df5002f (patch)
tree7d4af0519b6b50a0cb176ac99a33b7897877bafb
parent89c294514853ee4849855f880d6d7ff349494c4d (diff)
downloadrneovim-ca8694a69d2a91032337bc1141c954ba0df5002f.tar.gz
rneovim-ca8694a69d2a91032337bc1141c954ba0df5002f.tar.bz2
rneovim-ca8694a69d2a91032337bc1141c954ba0df5002f.zip
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
-rw-r--r--test/old/testdir/test_compiler.vim3
1 files changed, 3 insertions, 0 deletions
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