Skip to content

Commit 753289f

Browse files
committed
patch 8.0.0995: terminal tests fail on Mac
Problem: Terminal tests fail on Mac. Solution: Add workaround: sleep a moment in between sending keys.
1 parent be0b729 commit 753289f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/testdir/test_terminal.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ func Test_terminal_noblock()
456456

457457
for c in ['a','b','c','d','e','f','g','h','i','j','k']
458458
call term_sendkeys(g:buf, 'echo ' . repeat(c, 5000) . "\<cr>")
459+
if has('mac')
460+
" TODO: this should not be needed, but without it sending keys blocks
461+
" after 8000 chars or so.
462+
sleep 100m
463+
endif
459464
endfor
460465
call term_sendkeys(g:buf, "echo done\<cr>")
461466

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+
995,
772774
/**/
773775
994,
774776
/**/

0 commit comments

Comments
 (0)