diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-14 21:12:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-14 21:12:05 +0200 |
commit | 93344c2d707d9953f351c944e6a237c9916f69a3 (patch) | |
tree | c21ac5e6e744c88462156a3158dfd3c7ef63371c /src/testdir/test_autocmd.vim | |
parent | 6ace95e9810bdfef5392ad89efc9e4ad4606de28 (diff) |
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_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 5bb601e2d7..9dc578e451 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -439,7 +439,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost() [CODE] call writefile(content, 'Xvimrc') - call system(v:progpath. ' -u Xvimrc --not-a-term --noplugins -S Session.vim -c cq') + call system(GetVimCommand('Xvimrc') .. ' --not-a-term --noplugins -S Session.vim -c cq') let errors = join(readfile('Xerrors')) call assert_match('E814', errors) @@ -479,7 +479,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost2() [CODE] call writefile(content, 'Xvimrc') - call system(v:progpath. ' -u Xvimrc --not-a-term --noplugins -S Session.vim -c cq') + call system(GetVimCommand('Xvimrc') .. ' --not-a-term --noplugins -S Session.vim -c cq') let errors = join(readfile('Xerrors')) " This probably only ever matches on unix. call assert_notmatch('Caught deadly signal SEGV', errors) @@ -1422,7 +1422,7 @@ func Test_bufunload_all() call writefile(content, 'Xtest') call delete('Xout') - call system(v:progpath. ' --clean -N --not-a-term -S Xtest') + call system(GetVimCommandClean() .. ' -N --not-a-term -S Xtest') call assert_true(filereadable('Xout')) call delete('Xxx1') |