]> granicus.if.org Git - vim/commitdiff
patch 8.2.3806: terminal focus test fails sometimes v8.2.3806
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Dec 2021 11:16:31 +0000 (11:16 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Dec 2021 11:16:31 +0000 (11:16 +0000)
Problem:    Terminal focus test fails sometimes.
Solution:   Run the test function before others.

src/testdir/test_terminal.vim
src/version.c

index 3e2a69106c83f61e8f85c5ceddc4d85e240a50fa..3dc7776a9d110825fadfadb456d4ac26cd5056fd 100644 (file)
@@ -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
@@ -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})
index 30a71e1ffe3e607872a7a67d906b56bf6a606a50..3098c59c6fb88d799cd80b5d82f138285ea7435f 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3806,
 /**/
     3805,
 /**/