Patch 9.0.1004

3 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 4, 2022, 5:27:18 PM12/4/22
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages