]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.1038: popupwin test fails v8.2.1038
authorBram Moolenaar <Bram@vim.org>
Mon, 22 Jun 2020 18:22:19 +0000 (20:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 22 Jun 2020 18:22:19 +0000 (20:22 +0200)
Problem:    Popupwin test fails.
Solution:   Fix WaitForAssert() argument.

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

index 80a14595e0ed421081725f51f635474ec3f453c6..9fb51abd7660c946fbed59934ea41f10f322fb06 100644 (file)
@@ -2454,10 +2454,9 @@ func Test_popupwin_terminal_buffer()
   call term_sendkeys(termbuf2, "exit\<CR>")
 
   " Exiting shell closes popup window
-  let pupwin = win_getid()
   call feedkeys("exit\<CR>", 'xt')
   " Wait for shell to exit
-  call WaitForAssert({-> assert_notequal(pupwin, win_getid())})
+  call WaitForAssert({-> assert_equal("dead", job_status(term_getjob(termbuf)))})
 
   call feedkeys(":quit\<CR>", 'xt')
   call assert_equal(origwin, win_getid())
index 43b101080926dc73869de2c7718bc5d869282413..b383830c95ff32b7ac7aedc1d4e960f9f7eb4597 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1038,
 /**/
     1037,
 /**/