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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user