To: vim_dev@googlegroups.com Subject: Patch 8.2.0923 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0923 Problem: Cmdline test is slow. Solution: Use WaitForAssert(). Files: src/testdir/test_cmdline.vim *** ../vim-8.2.0922/src/testdir/test_cmdline.vim 2020-06-07 17:03:15.189741376 +0200 --- src/testdir/test_cmdline.vim 2020-06-07 17:16:56.935304100 +0200 *************** *** 3,8 **** --- 3,9 ---- source check.vim source screendump.vim source view_util.vim + source shared.vim func Test_complete_tab() call writefile(['testfile'], 'Xtestfile') *************** *** 1194,1206 **** call writefile(lines, 'XTest_cmdwin') let buf = RunVimInTerminal('-S XTest_cmdwin', {'rows': 18}) - call TermWait(buf, 1000) " open cmdwin call term_sendkeys(buf, "q:") ! call TermWait(buf, 500) " quit more prompt for :smile command call term_sendkeys(buf, "q") ! call TermWait(buf, 500) " execute a simple command call term_sendkeys(buf, "aecho 'done'\") call VerifyScreenDump(buf, 'Test_cmdwin_interrupted', {}) --- 1195,1206 ---- call writefile(lines, 'XTest_cmdwin') let buf = RunVimInTerminal('-S XTest_cmdwin', {'rows': 18}) " open cmdwin call term_sendkeys(buf, "q:") ! call WaitForAssert({-> assert_match('-- More --', term_getline(buf, 18))}) " quit more prompt for :smile command call term_sendkeys(buf, "q") ! call WaitForAssert({-> assert_match('^$', term_getline(buf, 18))}) " execute a simple command call term_sendkeys(buf, "aecho 'done'\") call VerifyScreenDump(buf, 'Test_cmdwin_interrupted', {}) *** ../vim-8.2.0922/src/version.c 2020-06-07 17:19:57.822773778 +0200 --- src/version.c 2020-06-07 17:29:03.921112846 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 923, /**/ -- "Intelligence has much less practical application than you'd think." -- Scott Adams, Dilbert. /// 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 ///