Mercurial > vim
changeset 20641:20b6d5304e56 v8.2.0874
patch 8.2.0874: signals test is a bit flaky
Commit: https://github.com/vim/vim/commit/d14fd5285e491a39028c4b4722ddbe7c9dfa9bb2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 1 15:05:19 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Jun 2020 15:15:04 +0200 |
parents | d9b8b101d506 |
children | c0c5e1e1bad9 |
files | src/testdir/test_signals.vim src/version.c |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_signals.vim +++ b/src/testdir/test_signals.vim @@ -123,9 +123,15 @@ func Test_deadly_signal_TERM() if cmd =~ 'valgrind' throw 'Skipped: cannot test signal TERM with valgrind' 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 - au VimLeave * call writefile(["VimLeave triggered"], "XautoOut", "a") - au VimLeavePre * call writefile(["VimLeavePre triggered"], "XautoOut", "a") + au VimLeave * call writefile(["VimLeave triggered"], "XautoOut", "as") + au VimLeavePre * call writefile(["VimLeavePre triggered"], "XautoOut", "as") END call writefile(lines, 'XsetupAucmd')