summaryrefslogtreecommitdiff
path: root/src/testdir/test_vimscript.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-14 21:12:05 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-14 21:12:05 +0200
commit93344c2d707d9953f351c944e6a237c9916f69a3 (patch)
treec21ac5e6e744c88462156a3158dfd3c7ef63371c /src/testdir/test_vimscript.vim
parent6ace95e9810bdfef5392ad89efc9e4ad4606de28 (diff)
downloadvim-git-93344c2d707d9953f351c944e6a237c9916f69a3.tar.gz
patch 8.1.1846: inconsistently using GetVimCommand() and v:progpathv8.1.1846
Problem: Inconsistently using GetVimCommand() and v:progpath. (Daniel Hahler) Solution: Use GetVimCommand(). (closes #4806)
Diffstat (limited to 'src/testdir/test_vimscript.vim')
-rw-r--r--src/testdir/test_vimscript.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim
index cf2c961be..69a2ebafd 100644
--- a/src/testdir/test_vimscript.vim
+++ b/src/testdir/test_vimscript.vim
@@ -2,6 +2,7 @@
" Most of this was formerly in test49.
source check.vim
+source shared.vim
"-------------------------------------------------------------------------------
" Test environment {{{1
@@ -1721,7 +1722,7 @@ func Test_function_defined_line()
[CODE]
call writefile(lines, 'Xtest.vim')
- let res = system(v:progpath .. ' --clean -es -X -S Xtest.vim')
+ let res = system(GetVimCommandClean() .. ' -es -X -S Xtest.vim')
call assert_equal(0, v:shell_error)
let m = matchstr(res, 'function F1()[^[:print:]]*[[:print:]]*')