]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1073: tests: test_compiler fails on Windows without Maven v9.1.1073
authorzeertzjq <zeertzjq@outlook.com>
Mon, 3 Feb 2025 17:53:28 +0000 (18:53 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 3 Feb 2025 17:53:28 +0000 (18:53 +0100)
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>
src/testdir/test_compiler.vim
src/version.c

index d62a4ee3fd3540ed02723ab2c0f978803e24653b..99f472401d49eb1e9591f062c6304ece577c87e0 100644 (file)
@@ -417,8 +417,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
@@ -702,6 +704,7 @@ func Test_compiler_spotbugs_properties()
 
     bwipeout
     setlocal makeprg=
+    let $PATH = save_PATH
   endif
 
   filetype plugin off
index dd500d157b4a767e7aafb79197e42c2d5252f42f..add59593a91bbe29913dfb7f898b08fa1200a352 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1073,
 /**/
     1072,
 /**/