Problem: Shared script for tests cannot be included twice.
Solution: Include it where needed, it will "finish" if loaded again.
" 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
" Tests for setbufline() and getbufline()
-if !exists('*GetVimCommand')
- source shared.vim
-endif
+source shared.vim
func Test_setbufline_getbufline()
new
finish
endif
-if !exists('*WaitFor')
- source shared.vim
-endif
+source shared.vim
func MyHandler(timer)
let g:val += 1
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1162,
/**/
1161,
/**/