aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_compiler.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-02-08 18:02:26 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-02-16 07:49:43 -0500
commite5aeb2e193301a645b794346e07897092af540d1 (patch)
treed6e6c6092971b47945973e82995b809c6b88ad93 /src/nvim/testdir/test_compiler.vim
parenta1d6c2f5c9e7834ec6eb087b72354a1257582f3d (diff)
downloadrneovim-e5aeb2e193301a645b794346e07897092af540d1.tar.gz
rneovim-e5aeb2e193301a645b794346e07897092af540d1.tar.bz2
rneovim-e5aeb2e193301a645b794346e07897092af540d1.zip
vim-patch:8.1.2129: using hard coded executable path in test
Problem: Using hard coded executable path in test. Solution: Use v:progpath. Use $VIMRUNTIME instead of "runtime". (James McCoy, closes vim/vim#5025) https://github.com/vim/vim/commit/1ac41a5c1352306942344777d2ba86dccd84ffad
Diffstat (limited to 'src/nvim/testdir/test_compiler.vim')
-rw-r--r--src/nvim/testdir/test_compiler.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_compiler.vim b/src/nvim/testdir/test_compiler.vim
index 40d3cdbdae..06522d77ec 100644
--- a/src/nvim/testdir/test_compiler.vim
+++ b/src/nvim/testdir/test_compiler.vim
@@ -39,9 +39,9 @@ endfunc
func Test_compiler_without_arg()
let a=split(execute('compiler'))
- call assert_match('^.*runtime/compiler/ant.vim$', a[0])
- call assert_match('^.*runtime/compiler/bcc.vim$', a[1])
- call assert_match('^.*runtime/compiler/xmlwf.vim$', a[-1])
+ call assert_match($VIMRUNTIME .. '/compiler/ant.vim$', a[0])
+ call assert_match($VIMRUNTIME .. '/compiler/bcc.vim$', a[1])
+ call assert_match($VIMRUNTIME .. '/compiler/xmlwf.vim$', a[-1])
endfunc
func Test_compiler_completion()