]> granicus.if.org Git - vim/commitdiff
patch 8.2.3098: popup window test is flaky on MS-Windows with GUI v8.2.3098
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Jul 2021 12:00:55 +0000 (14:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Jul 2021 12:00:55 +0000 (14:00 +0200)
Problem:    Popup window test is flaky on MS-Windows with GUI.
Solution:   Skip the check in this situation.

src/testdir/test_popupwin.vim
src/version.c

index 8e02ef1f0338bc29cfdbd1a7f9739093082c4287..62e19fa5d241ec05986fcdc1472e87b84e4fdf75 100644 (file)
@@ -1550,24 +1550,32 @@ func Test_popup_filter()
   redraw
 
   " e is consumed by the filter
+  let g:eaten = ''
   call feedkeys('e', 'xt')
   call assert_equal('e', g:eaten)
   call feedkeys("\<F9>", 'xt')
   call assert_equal("\<F9>", g:eaten)
 
   " 0 is ignored by the filter
+  let g:ignored = ''
   normal $
   call assert_equal(9, getcurpos()[2])
   call feedkeys('0', 'xt')
   call assert_equal('0', g:ignored)
-  normal! l
-  call assert_equal(2, getcurpos()[2])
+
+  if has('win32') && has('gui_running')
+    echo "FIXME: this check is very flaky on MS-Windows GUI, the cursor doesn't move"
+  else
+    call assert_equal(1, getcurpos()[2])
+  endif
 
   " x closes the popup
   call feedkeys('x', 'xt')
   call assert_equal("\<F9>", g:eaten)
   call assert_equal(-1, winbufnr(winid))
 
+  unlet g:eaten
+  unlet g:ignored
   delfunc MyPopupFilter
   call popup_clear()
 endfunc
index f6d5758aca15892ebfca0904e15a6190c32f66f7..8d391d331d5af43fb1022d8ae390d5146b0b405c 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3098,
 /**/
     3097,
 /**/