1
0
forked from aniani/vim

patch 8.0.1162: shared script for tests cannot be included twice

Problem:    Shared script for tests cannot be included twice.
Solution:   Include it where needed, it will "finish" if loaded again.
This commit is contained in:
Bram Moolenaar
2017-09-30 14:26:58 +02:00
parent a5e6621aad
commit 660b85e39a
4 changed files with 4 additions and 8 deletions

View File

@@ -1,8 +1,6 @@
" A series of tests that can run in one Vim invocation.
" This makes testing go faster, since Vim doesn't need to restart.
source shared.vim
set belloff=all
source test_assign.vim
source test_bufline.vim

View File

@@ -1,8 +1,6 @@
" Tests for setbufline() and getbufline()
if !exists('*GetVimCommand')
source shared.vim
endif
source shared.vim
func Test_setbufline_getbufline()
new

View File

@@ -4,9 +4,7 @@ if !has('timers')
finish
endif
if !exists('*WaitFor')
source shared.vim
endif
source shared.vim
func MyHandler(timer)
let g:val += 1

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1162,
/**/
1161,
/**/