Mercurial > vim
comparison src/testdir/test_terminal.vim @ 13158:43bd8bad22b6 v8.0.1453
patch 8.0.1453: terminal test fails on some slow terminals
commit https://github.com/vim/vim/commit/218101442e8775bd1f05d1dda18d3946ee032dd1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 2 18:30:36 2018 +0100
patch 8.0.1453: terminal test fails on some slow terminals
Problem: Terminal test fails on some slow terminals.
Solution: Increase timeout to 10 seconds.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 02 Feb 2018 18:45:05 +0100 |
parents | 36c503100cb3 |
children | b5806be0b36d |
comparison
equal
deleted
inserted
replaced
13157:c2a20b4e3e4f | 13158:43bd8bad22b6 |
---|---|
520 call term_sendkeys(buf, "echo done\<cr>") | 520 call term_sendkeys(buf, "echo done\<cr>") |
521 | 521 |
522 " On MS-Windows there is an extra empty line below "done". Find "done" in | 522 " On MS-Windows there is an extra empty line below "done". Find "done" in |
523 " the last-but-one or the last-but-two line. | 523 " the last-but-one or the last-but-two line. |
524 let lnum = term_getsize(buf)[0] - 1 | 524 let lnum = term_getsize(buf)[0] - 1 |
525 call WaitFor({-> term_getline(buf, lnum) =~ "done" || term_getline(buf, lnum - 1) =~ "done"}, 3000) | 525 call WaitFor({-> term_getline(buf, lnum) =~ "done" || term_getline(buf, lnum - 1) =~ "done"}, 10000) |
526 let line = term_getline(buf, lnum) | 526 let line = term_getline(buf, lnum) |
527 if line !~ 'done' | 527 if line !~ 'done' |
528 let line = term_getline(buf, lnum - 1) | 528 let line = term_getline(buf, lnum - 1) |
529 endif | 529 endif |
530 call assert_match('done', line) | 530 call assert_match('done', line) |