changeset 13590:0fc3ec8517e9 v8.0.1667

patch 8.0.1667: terminal window tests are flaky commit https://github.com/vim/vim/commit/3680bab7e797444a7f41646888d9dd04b01c3816 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 6 20:22:06 2018 +0200 patch 8.0.1667: terminal window tests are flaky Problem: Terminal window tests are flaky. Solution: Increase the waiting time for Vim to start.
author Christian Brabandt <cb@256bit.org>
date Fri, 06 Apr 2018 20:30:06 +0200
parents 1073225cb749
children 035fc9d3dd9b
files src/testdir/screendump.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -59,8 +59,9 @@ func RunVimInTerminal(arguments, options
   let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
   call assert_equal([rows, cols], term_getsize(buf))
 
-  " Wait for the ruler (in the status line) to be shown.
-  call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1})
+  " Wait for "All" of the ruler in the status line to be shown.
+  " This can be quite slow (e.g. when using valgrind), wait up to 4 seconds.
+  call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1}, 4000)
 
   return buf
 endfunc
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1667,
+/**/
     1666,
 /**/
     1665,