1
0
forked from aniani/vim

patch 9.0.1005: a failed test may leave a swap file behind

Problem:    A failed test may leave a swap file behind.
Solution:   Delete the swap file to avoid another test to fail.  Use another
            file name.
This commit is contained in:
Bram Moolenaar
2022-12-04 23:00:41 +00:00
parent a0a6f3a22a
commit d0f8d39d20
7 changed files with 57 additions and 1 deletions

View File

@@ -665,6 +665,9 @@ func Test_term_mouse_click_tab()
set mouse=a term=xterm
call WaitForResponses()
" in case a previous failure left a swap file behind
call delete('.Xfoo.swp')
let row = 1
for ttymouse_val in g:Ttymouse_values + g:Ttymouse_dec + g:Ttymouse_netterm