Patch 8.2.3772
Problem: Timer info test fails on slow machine.
Solution: Use WaitForAssert().
Files: src/testdir/test_timers.vim
*** ../vim-8.2.3771/src/testdir/test_timers.vim 2021-12-09 18:42:54.029929797
+0000
--- src/testdir/test_timers.vim 2021-12-10 10:55:52.280714184 +0000
***************
*** 121,128 ****
" check repeat count inside the callback
let g:timer_repeat = []
let tid = timer_start(10, {tid -> execute("call add(g:timer_repeat,
timer_info(tid)[0].repeat)")}, #{repeat: 3})
! sleep 100m
! call assert_equal([2, 1, 0], g:timer_repeat)
unlet g:timer_repeat
endfunc
--- 121,127 ----
" check repeat count inside the callback
let g:timer_repeat = []
let tid = timer_start(10, {tid -> execute("call add(g:timer_repeat,
timer_info(tid)[0].repeat)")}, #{repeat: 3})
! call WaitForAssert({-> assert_equal([2, 1, 0], g:timer_repeat)})
unlet g:timer_repeat
endfunc
*** ../vim-8.2.3771/src/version.c 2021-12-10 10:37:30.855830802 +0000
--- src/version.c 2021-12-10 10:56:50.572478437 +0000
***************
*** 755,756 ****
--- 755,758 ----
{ /* Add new patch number below this line */
+ /**/
+ 3772,
/**/
--
hundred-and-one symptoms of being an internet addict:
26. You check your mail. It says "no new messages." So you check it again.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20211210105852.34ADF1C09BB%40moolenaar.net.