1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-03-18 19:18:10 +01:00
parent 292b90d4fa
commit 3cdcb090a6
5 changed files with 17 additions and 4 deletions

View File

@@ -93,11 +93,17 @@ func RunVimInTerminal(arguments, options)
call assert_report('RunVimInTerminal() failed, screen contents: ' . join(lines, "<NL>"))
endtry
" Starting a terminal to run Vim is always considered flaky.
let test_is_flaky = 1
return buf
endfunc
" Stop a Vim running in terminal buffer "buf".
func StopVimInTerminal(buf)
" Using a terminal to run Vim is always considered flaky.
let test_is_flaky = 1
call assert_equal("running", term_getstatus(a:buf))
" CTRL-O : works both in Normal mode and Insert mode to start a command line.