comparison src/testdir/screendump.vim @ 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 af68603e213d
children 2f44d91c2bcc
comparison
equal deleted inserted replaced
13589:1073225cb749 13590:0fc3ec8517e9
57 " Add -v to have gvim run in the terminal (if possible) 57 " Add -v to have gvim run in the terminal (if possible)
58 let cmd .= ' -v ' . a:arguments 58 let cmd .= ' -v ' . a:arguments
59 let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols}) 59 let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
60 call assert_equal([rows, cols], term_getsize(buf)) 60 call assert_equal([rows, cols], term_getsize(buf))
61 61
62 " Wait for the ruler (in the status line) to be shown. 62 " Wait for "All" of the ruler in the status line to be shown.
63 call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1}) 63 " This can be quite slow (e.g. when using valgrind), wait up to 4 seconds.
64 call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1}, 4000)
64 65
65 return buf 66 return buf
66 endfunc 67 endfunc
67 68
68 " Stop a Vim running in terminal buffer "buf". 69 " Stop a Vim running in terminal buffer "buf".