0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 8.0.1631: testing with Vim running in terminal is a bit flaky

Problem:    Testing with Vim running in terminal is a bit flaky.
Solution:   Delete any .swp file so that later tests don't fail.
This commit is contained in:
Bram Moolenaar
2018-03-23 20:37:45 +01:00
parent 295ac5ab5e
commit 948a796bfe
2 changed files with 6 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ source shared.vim
" "
" Options is a dictionary (not used yet). " Options is a dictionary (not used yet).
func RunVimInTerminal(arguments, options) func RunVimInTerminal(arguments, options)
" If Vim doesn't exit a swap file remains, causing other tests to fail.
" Remove it here.
call delete(".swp")
" Make a horizontal and vertical split, so that we can get exactly the right " Make a horizontal and vertical split, so that we can get exactly the right
" size terminal window. Works only when we currently have one window. " size terminal window. Works only when we currently have one window.
call assert_equal(1, winnr('$')) call assert_equal(1, winnr('$'))

View File

@@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1631,
/**/ /**/
1630, 1630,
/**/ /**/