aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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