To: vim_dev@googlegroups.com Subject: Patch 8.0.1667 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1667 Problem: Terminal window tests are flaky. Solution: Increase the waiting time for Vim to start. Files: src/testdir/screendump.vim *** ../vim-8.0.1666/src/testdir/screendump.vim 2018-03-29 17:40:42.607415702 +0200 --- src/testdir/screendump.vim 2018-04-06 20:17:04.233652369 +0200 *************** *** 59,66 **** 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}) return buf endfunc --- 59,67 ---- let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols}) call assert_equal([rows, cols], term_getsize(buf)) ! " 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 *** ../vim-8.0.1666/src/version.c 2018-04-05 22:59:47.278555923 +0200 --- src/version.c 2018-04-06 20:21:27.195796852 +0200 *************** *** 764,765 **** --- 764,767 ---- { /* Add new patch number below this line */ + /**/ + 1667, /**/ -- hundred-and-one symptoms of being an internet addict: 111. You and your friends get together regularly on IRC, even though all of you live in the same city. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///