mirror of
https://github.com/vim/vim.git
synced 2025-09-01 21:03:39 -04:00
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: #16576 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
ccd7f454fc
commit
23da16d3d0
@ -417,8 +417,10 @@ func Test_compiler_spotbugs_properties()
|
|||||||
|
|
||||||
" TEST INTEGRATION WITH A SUPPORTED COMPILER PLUGIN.
|
" TEST INTEGRATION WITH A SUPPORTED COMPILER PLUGIN.
|
||||||
if filereadable($VIMRUNTIME .. '/compiler/maven.vim')
|
if filereadable($VIMRUNTIME .. '/compiler/maven.vim')
|
||||||
|
let save_PATH = $PATH
|
||||||
if !executable('mvn')
|
if !executable('mvn')
|
||||||
if has('win32')
|
if has('win32')
|
||||||
|
let $PATH = 'Xspotbugs;' .. $PATH
|
||||||
" This is what ":help executable()" suggests.
|
" This is what ":help executable()" suggests.
|
||||||
call writefile([], 'Xspotbugs/mvn.cmd')
|
call writefile([], 'Xspotbugs/mvn.cmd')
|
||||||
else
|
else
|
||||||
@ -702,6 +704,7 @@ func Test_compiler_spotbugs_properties()
|
|||||||
|
|
||||||
bwipeout
|
bwipeout
|
||||||
setlocal makeprg=
|
setlocal makeprg=
|
||||||
|
let $PATH = save_PATH
|
||||||
endif
|
endif
|
||||||
|
|
||||||
filetype plugin off
|
filetype plugin off
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1073,
|
||||||
/**/
|
/**/
|
||||||
1072,
|
1072,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user