Skip to content

Commit

Permalink
patch 8.2.3806: terminal focus test fails sometimes
Browse files Browse the repository at this point in the history
Problem:    Terminal focus test fails sometimes.
Solution:   Run the test function before others.
  • Loading branch information
brammool committed Dec 14, 2021
1 parent 8176be1 commit c295858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/testdir/test_terminal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,8 @@ func Test_terminal_response_to_control_sequence()
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
Expand All @@ -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})
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3806,
/**/
3805,
/**/
Expand Down

0 comments on commit c295858

Please sign in to comment.