Patch 8.2.2180

2 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 21, 2020, 12:12:01 PM12/21/20
to vim...@googlegroups.com

Patch 8.2.2180
Problem: Vim9: test for error after error is flaky.
Solution: Wait for job to finish instead of a fixed delay.
Files: src/testdir/test_vim9_script.vim


*** ../vim-8.2.2179/src/testdir/test_vim9_script.vim 2020-12-20 21:10:13.902437880 +0100
--- src/testdir/test_vim9_script.vim 2020-12-21 18:09:55.745938695 +0100
***************
*** 3096,3102 ****
source += l
enddef
var myjob = job_start('echo burp', {out_cb: Out_cb, exit_cb: Exit_cb, mode: 'raw'})
! sleep 100m
END
writefile(lines, 'Xdef')
assert_fails('so Xdef', ['E684:', 'E1012:'])
--- 3096,3105 ----
source += l
enddef
var myjob = job_start('echo burp', {out_cb: Out_cb, exit_cb: Exit_cb, mode: 'raw'})
! while job_status(myjob) == 'run'
! sleep 10m
! endwhile
! sleep 10m
END
writefile(lines, 'Xdef')
assert_fails('so Xdef', ['E684:', 'E1012:'])
*** ../vim-8.2.2179/src/version.c 2020-12-21 17:30:46.941668485 +0100
--- src/version.c 2020-12-21 18:10:55.753757297 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2180,
/**/

--
Engineers understand that their appearance only bothers other people and
therefore it is not worth optimizing.
(Scott Adams - The Dilbert principle)

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