summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_compiler.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-10 13:30:12 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-10 13:30:12 +0200
commit1ac41a5c1352306942344777d2ba86dccd84ffad (patch)
tree17371b356f3e214da8605295511d1cf66623d1ad /src/testdir/test_compiler.vim
parent93268054428fe3a6bbe3f89d2def2fec4eabcf5f (diff)
patch 8.1.2129: using hard coded executable path in testv8.1.2129
Problem: Using hard coded executable path in test. Solution: Use v:progpath. Use $VIMRUNTIME instead of "runtime". (James McCoy, closes #5025)
Diffstat (limited to 'src/testdir/test_compiler.vim')
-rw-r--r--src/testdir/test_compiler.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_compiler.vim b/src/testdir/test_compiler.vim
index 40d3cdbdae..06522d77ec 100644
--- a/src/testdir/test_compiler.vim
+++ b/src/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()