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. " A series of tests that can run in one Vim invocation.
" This makes testing go faster, since Vim doesn't need to restart. " This makes testing go faster, since Vim doesn't need to restart.
source shared.vim
set belloff=all set belloff=all
source test_assign.vim source test_assign.vim
source test_bufline.vim source test_bufline.vim

View File

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

View File

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

View File

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