Skip to content

Commit 948a796

Browse files
committed
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.
1 parent 295ac5a commit 948a796

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/testdir/screendump.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ source shared.vim
2626
"
2727
" Options is a dictionary (not used yet).
2828
func RunVimInTerminal(arguments, options)
29+
" If Vim doesn't exit a swap file remains, causing other tests to fail.
30+
" Remove it here.
31+
call delete(".swp")
32+
2933
" Make a horizontal and vertical split, so that we can get exactly the right
3034
" size terminal window. Works only when we currently have one window.
3135
call assert_equal(1, winnr('$'))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1631,
769771
/**/
770772
1630,
771773
/**/

0 commit comments

Comments
 (0)