To: vim_dev@googlegroups.com Subject: Patch 8.0.1823 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1823 Problem: Test for terminal stdout redirection is flaky. Solution: Wait for the job to finish. Files: src/testdir/test_terminal.vim *** ../vim-8.0.1822/src/testdir/test_terminal.vim 2018-05-12 17:42:38.737075919 +0200 --- src/testdir/test_terminal.vim 2018-05-12 21:10:19.160153785 +0200 *************** *** 1502,1507 **** --- 1502,1508 ---- call assert_equal("this is standard out", readfile(outfile)[0]) call assert_equal('this is standard error', term_getline(buf, 1)) + call WaitForAssert({-> assert_equal('dead', job_status(term_getjob(buf)))}) exe buf . 'bwipe' call delete('Xechoerrout.sh') call delete(outfile) *** ../vim-8.0.1822/src/version.c 2018-05-12 21:05:41.502013273 +0200 --- src/version.c 2018-05-12 21:11:34.963646351 +0200 *************** *** 763,764 **** --- 763,766 ---- { /* Add new patch number below this line */ + /**/ + 1823, /**/ -- MONK: ... and the Lord spake, saying, "First shalt thou take out the Holy Pin, then shalt thou count to three, no more, no less. Three shalt be the number thou shalt count, and the number of the counting shalt be three. Four shalt thou not count, neither count thou two, excepting that thou then proceed to three. Five is right out. Once the number three, being the third number, be reached, then lobbest thou thy Holy Hand Grenade of Antioch towards thou foe, who being naughty in my sight, shall snuff it. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 ///