]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.2149: popupwin test for latin1 sometimes fails v8.2.2149
authorBram Moolenaar <Bram@vim.org>
Thu, 17 Dec 2020 16:45:59 +0000 (17:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 17 Dec 2020 16:45:59 +0000 (17:45 +0100)
Problem:    Popupwin test for latin1 sometimes fails.
Solution:   Wait for the script to finish.

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

index cf9536f5e1fb42f1f53cfdc771a9143da0dae37b..32a1eb7e80352a9d812c1c13d5c584f94fc1420e 100644 (file)
@@ -3721,11 +3721,14 @@ func Test_popupwin_latin1_encoding()
       set encoding=latin1
       terminal cat Xmultibyte
       call popup_create(['one', 'two', 'three', 'four'], #{line: 1, col: 10})
+      redraw
+      echo "Done"
   END
   call writefile(lines, 'XtestPopupLatin')
   call writefile([repeat("\u3042 ", 120)], 'Xmultibyte')
 
   let buf = RunVimInTerminal('-S XtestPopupLatin', #{rows: 10})
+  call WaitForAssert({-> assert_match('Done', term_getline(buf, 10))})
 
   call term_sendkeys(buf, ":q\<CR>")
   call StopVimInTerminal(buf)
index a5c7127dc23d1345242b92886570383da92c34f0..95633c8f27d622d09fc39831597dbc53b845d4ba 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2149,
 /**/
     2148,
 /**/