comparison src/testdir/screendump.vim @ 13515:eb960e9c75c8 v8.0.1631

patch 8.0.1631: testing with Vim running in terminal is a bit flaky commit https://github.com/vim/vim/commit/948a796bfea55d1e5a3a079d4976fdd4d093cd05 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 23 20:37:45 2018 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Fri, 23 Mar 2018 20:45:08 +0100
parents 1ba4f926247c
children f5655d70484f
comparison
equal deleted inserted replaced
13514:a193655e5330 13515:eb960e9c75c8
24 " By default uses a size of 20 lines and 75 columns. 24 " By default uses a size of 20 lines and 75 columns.
25 " Returns the buffer number of the terminal. 25 " Returns the buffer number of the terminal.
26 " 26 "
27 " Options is a dictionary (not used yet). 27 " Options is a dictionary (not used yet).
28 func RunVimInTerminal(arguments, options) 28 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
29 " Make a horizontal and vertical split, so that we can get exactly the right 33 " Make a horizontal and vertical split, so that we can get exactly the right
30 " size terminal window. Works only when we currently have one window. 34 " size terminal window. Works only when we currently have one window.
31 call assert_equal(1, winnr('$')) 35 call assert_equal(1, winnr('$'))
32 split 36 split
33 vsplit 37 vsplit