Mercurial > vim
changeset 26554:7a74515dde6b v8.2.3806
patch 8.2.3806: terminal focus test fails sometimes
Commit: https://github.com/vim/vim/commit/c2958585f6c7ce4d822d3191ba501c0757b3ffff
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 14 11:16:31 2021 +0000
patch 8.2.3806: terminal focus test fails sometimes
Problem: Terminal focus test fails sometimes.
Solution: Run the test function before others.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Dec 2021 12:30:03 +0100 |
parents | 9b89e8317f8e |
children | 2ea8b67ac427 |
files | src/testdir/test_terminal.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1124,7 +1124,8 @@ func Test_terminal_response_to_control_s unlet g:job endfunc -func Test_terminal_focus_events() +" Run this first, it fails when run after other tests. +func Test_aa_terminal_focus_events() CheckNotGui CheckUnix CheckRunVimInTerminal @@ -1137,8 +1138,6 @@ func Test_terminal_focus_events() set term=xterm ttymouse=xterm2 au FocusLost * call setline(1, 'I am lost') | set nomod au FocusGained * call setline(1, 'I am back') | set nomod - " FIXME: sometimes this job hangs, exit after a couple of seconds - call timer_start(2000, {id -> execute('qall')}) END call writefile(lines, 'XtermFocus') let buf = RunVimInTerminal('-S XtermFocus', #{rows: 6})