To: vim_dev@googlegroups.com Subject: Patch 8.2.1036 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1036 Problem: Popupwin test fails sometimes. Solution: Use WaitForAssert() instead of a sleep. Files: src/testdir/test_popupwin.vim *** ../vim-8.2.1035/src/testdir/test_popupwin.vim 2020-06-20 15:03:34.978136840 +0200 --- src/testdir/test_popupwin.vim 2020-06-22 19:23:14.779285233 +0200 *************** *** 2454,2462 **** call term_sendkeys(termbuf2, "exit\") " Exiting shell closes popup window call feedkeys("exit\", 'xt') " Wait for shell to exit ! sleep 100m call feedkeys(":quit\", 'xt') call assert_equal(origwin, win_getid()) endfunc --- 2454,2464 ---- call term_sendkeys(termbuf2, "exit\") " Exiting shell closes popup window + let pupwin = win_getid() call feedkeys("exit\", 'xt') " Wait for shell to exit ! call WaitForAssert({-> assert_notequal(pupwin, win_getid())}) ! call feedkeys(":quit\", 'xt') call assert_equal(origwin, win_getid()) endfunc *** ../vim-8.2.1035/src/version.c 2020-06-22 19:10:51.689755096 +0200 --- src/version.c 2020-06-22 19:24:01.611138833 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1036, /**/ -- "When I die, I want a tombstone that says "GAME OVER" - Ton Richters /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///