diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-18 19:18:10 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-18 19:18:10 +0100 |
commit | 3cdcb090a664e182078f7cc0ca3e4e5a94bbb784 (patch) | |
tree | 18d7686880a240523e7177b39d97b5670d73db52 /src/testdir/term_util.vim | |
parent | 292b90d4fa11022661f449dd3efb73d5ac737313 (diff) | |
download | vim-git-3cdcb090a664e182078f7cc0ca3e4e5a94bbb784.tar.gz |
patch 8.2.0400: not all tests using a terminal are in the list of flaky testsv8.2.0400
Problem: Not all tests using a terminal are in the list of flaky tests.
Solution: Introduce the test_is_flaky flag.
Diffstat (limited to 'src/testdir/term_util.vim')
-rw-r--r-- | src/testdir/term_util.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/term_util.vim b/src/testdir/term_util.vim index 4eaf6d8be..c9e0ac528 100644 --- a/src/testdir/term_util.vim +++ b/src/testdir/term_util.vim @@ -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. |