Skip to content

Commit 11aa62f

Browse files
committed
patch 8.0.1055: bufline test hangs on MS-Windows
Problem: Bufline test hangs on MS-Windows. Solution: Avoid message for writing file. Source shared.vim when running test individually.
1 parent 1783337 commit 11aa62f

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/testdir/test_bufline.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
" Tests for setbufline() and getbufline()
22

3+
if !exists('*GetVimCommand')
4+
source shared.vim
5+
endif
6+
37
func Test_setbufline_getbufline()
48
new
59
let b = bufnr('%')
@@ -30,7 +34,7 @@ func Test_setline_startup()
3034
if cmd == ''
3135
return
3236
endif
33-
call writefile(['call setline(1, "Hello")', 'w Xtest', 'q!'], 'Xscript')
37+
call writefile(['call setline(1, "Hello")', 'silent w Xtest', 'q!'], 'Xscript')
3438
call system(cmd)
3539
call assert_equal(['Hello'], readfile('Xtest'))
3640

src/testdir/test_timers.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ if !has('timers')
44
finish
55
endif
66

7+
if !exists('*WaitFor')
8+
source shared.vim
9+
endif
10+
711
func MyHandler(timer)
812
let g:val += 1
913
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1055,
772774
/**/
773775
1054,
774776
/**/

0 commit comments

Comments
 (0)