comparison src/testdir/test_terminal.vim @ 12355:368a7bf382c7 v8.0.1057

patch 8.0.1057: terminal scrape test waits too long commit https://github.com/vim/vim/commit/1bfdc07a4996b5905b4971e18a6487a18e6461a4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 5 20:19:42 2017 +0200 patch 8.0.1057: terminal scrape test waits too long Problem: Terminal scrape test waits too long, it checks for one instead of three. Solution: Check there are three characters. (micbou)
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Sep 2017 20:30:04 +0200
parents bb67396239a4
children 9a7fb1d01137
comparison
equal deleted inserted replaced
12354:bd68fad23c41 12355:368a7bf382c7
164 call term_wait(1234) 164 call term_wait(1234)
165 165
166 call term_wait(buf) 166 call term_wait(buf)
167 let g:buf = buf 167 let g:buf = buf
168 " On MS-Windows we first get a startup message of two lines, wait for the 168 " On MS-Windows we first get a startup message of two lines, wait for the
169 " "cls" to happen, after that we have one line. 169 " "cls" to happen, after that we have one line with three characters.
170 call WaitFor('len(term_scrape(g:buf, 1)) == 1') 170 call WaitFor('len(term_scrape(g:buf, 1)) == 3')
171 call Check_123(buf) 171 call Check_123(buf)
172 172
173 " Must still work after the job ended. 173 " Must still work after the job ended.
174 let g:job = term_getjob(buf) 174 let g:job = term_getjob(buf)
175 call WaitFor('job_status(g:job) == "dead"') 175 call WaitFor('job_status(g:job) == "dead"')