Permalink
Browse files

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.
  • Loading branch information...
brammool committed Sep 30, 2017
1 parent a5e6621 commit 660b85e39a48a9f2e3bd7e4d8b97d0a1b4842997
Showing with 4 additions and 8 deletions.
  1. +0 −2 src/testdir/test_alot.vim
  2. +1 −3 src/testdir/test_bufline.vim
  3. +1 −3 src/testdir/test_timers.vim
  4. +2 −0 src/version.c
@@ -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
@@ -1,8 +1,6 @@
" Tests for setbufline() and getbufline()
if !exists('*GetVimCommand')
source shared.vim
endif
source shared.vim
func Test_setbufline_getbufline()
new
@@ -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
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1162,
/**/
1161,
/**/

0 comments on commit 660b85e

Please sign in to comment.