Permalink
Browse files

patch 8.0.1116: terminal test fails on MS-Windows

Problem:    Terminal test fails on MS-Windows.
Solution:   Wait for the text to appear. (micbou, closes #2097)
  • Loading branch information...
brammool committed Sep 16, 2017
1 parent 495b7dd commit 1514e8f4271d0039740b968a9f7d0d7f81a262a2
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/testdir/test_terminal.vim
  2. +2 −0 src/version.c
@@ -634,7 +634,8 @@ func TerminalTmap(remap)
call assert_equal('456', maparg('123', 't'))
call assert_equal('abcde', maparg('456', 't'))
call feedkeys("123", 'tx')
call term_wait(buf)
let g:buf = buf
call WaitFor("term_getline(g:buf,term_getcursor(g:buf)[0]) =~ 'abcde\\|456'")
let lnum = term_getcursor(buf)[0]
if a:remap
call assert_match('abcde', term_getline(buf, lnum))
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1116,
/**/
1115,
/**/

0 comments on commit 1514e8f

Please sign in to comment.