To: vim_dev@googlegroups.com Subject: Patch 9.0.1004 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1004 Problem: Suspend test sometimes fails on MacOS. Solution: Wait a short while for terminal responses. Files: src/testdir/test_suspend.vim *** ../vim-9.0.1003/src/testdir/test_suspend.vim 2020-12-11 18:29:04.000000000 +0000 --- src/testdir/test_suspend.vim 2022-12-04 22:24:58.094750979 +0000 *************** *** 2,7 **** --- 2,8 ---- source check.vim source term_util.vim + source shared.vim func CheckSuspended(buf, fileExists) call WaitForAssert({-> assert_match('[$#] $', term_getline(a:buf, '.'))}) *************** *** 21,26 **** --- 22,29 ---- CheckFeature terminal CheckExecutable /bin/sh + call WaitForResponses() + let buf = term_start('/bin/sh') " Wait for shell prompt. call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))}) *************** *** 65,70 **** --- 68,75 ---- CheckFeature terminal CheckExecutable /bin/sh + call WaitForResponses() + let buf = term_start('/bin/sh', #{term_rows: 6}) " Wait for shell prompt. call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))}) *** ../vim-9.0.1003/src/version.c 2022-12-04 21:40:48.467175257 +0000 --- src/version.c 2022-12-04 22:26:02.530733090 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1004, /**/ -- A computer without Windows is like a fish without a bicycle. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///