comparison src/testdir/term_util.vim @ 19687:c3f506e24eab v8.2.0400

patch 8.2.0400: not all tests using a terminal are in the list of flaky tests Commit: https://github.com/vim/vim/commit/3cdcb090a664e182078f7cc0ca3e4e5a94bbb784 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 18 19:18:10 2020 +0100 patch 8.2.0400: not all tests using a terminal are in the list of flaky tests Problem: Not all tests using a terminal are in the list of flaky tests. Solution: Introduce the test_is_flaky flag.
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Mar 2020 19:30:04 +0100
parents 4ac8161e92e0
children 60b5abfc4897
comparison
equal deleted inserted replaced
19686:a042d32afa7d 19687:c3f506e24eab
91 catch /timed out after/ 91 catch /timed out after/
92 let lines = map(range(1, rows), {key, val -> term_getline(buf, val)}) 92 let lines = map(range(1, rows), {key, val -> term_getline(buf, val)})
93 call assert_report('RunVimInTerminal() failed, screen contents: ' . join(lines, "<NL>")) 93 call assert_report('RunVimInTerminal() failed, screen contents: ' . join(lines, "<NL>"))
94 endtry 94 endtry
95 95
96 " Starting a terminal to run Vim is always considered flaky.
97 let test_is_flaky = 1
98
96 return buf 99 return buf
97 endfunc 100 endfunc
98 101
99 " Stop a Vim running in terminal buffer "buf". 102 " Stop a Vim running in terminal buffer "buf".
100 func StopVimInTerminal(buf) 103 func StopVimInTerminal(buf)
104 " Using a terminal to run Vim is always considered flaky.
105 let test_is_flaky = 1
106
101 call assert_equal("running", term_getstatus(a:buf)) 107 call assert_equal("running", term_getstatus(a:buf))
102 108
103 " CTRL-O : works both in Normal mode and Insert mode to start a command line. 109 " CTRL-O : works both in Normal mode and Insert mode to start a command line.
104 " In Command-line it's inserted, the CTRL-U removes it again. 110 " In Command-line it's inserted, the CTRL-U removes it again.
105 call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>") 111 call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>")