0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0874: signals test is a bit flaky

Problem:    Signals test is a bit flaky.
Solution:   Flush the XautoOut file.  Delete files that may be left behind
            from a failure. (Dominique Pelle, closes #6179)
This commit is contained in:
Bram Moolenaar
2020-06-01 15:05:19 +02:00
parent 2891459b81
commit d14fd5285e
2 changed files with 10 additions and 2 deletions

View File

@@ -123,9 +123,15 @@ func Test_deadly_signal_TERM()
if cmd =~ 'valgrind' if cmd =~ 'valgrind'
throw 'Skipped: cannot test signal TERM with valgrind' throw 'Skipped: cannot test signal TERM with valgrind'
endif endif
" If test fails once, it can leave temporary files and trying to rerun
" the test would then fail again if they are not deleted first.
call delete('.Xsig_TERM.swp')
call delete('XsetupAucmd')
call delete('XautoOut')
let lines =<< trim END let lines =<< trim END
au VimLeave * call writefile(["VimLeave triggered"], "XautoOut", "a") au VimLeave * call writefile(["VimLeave triggered"], "XautoOut", "as")
au VimLeavePre * call writefile(["VimLeavePre triggered"], "XautoOut", "a") au VimLeavePre * call writefile(["VimLeavePre triggered"], "XautoOut", "as")
END END
call writefile(lines, 'XsetupAucmd') call writefile(lines, 'XsetupAucmd')

View File

@@ -746,6 +746,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 */
/**/
874,
/**/ /**/
873, 873,
/**/ /**/