Patch 9.0.0563 (after 9.0.0561)
Problem: Timer_info() test fails.
Solution: Ignore test timeout timer. Don't use test_null_job() when not
available.
Files: src/testdir/test_vim9_builtin.vim, src/testdir/test_vimscript.vim
*** ../vim-9.0.0562/src/testdir/test_vim9_builtin.vim 2022-09-17
21:07:52.111993132 +0100
--- src/testdir/test_vim9_builtin.vim 2022-09-23 21:01:02.667319264 +0100
***************
*** 4520,4526 ****
def Test_timer_info()
v9.CheckDefAndScriptFailure(['timer_info("id")'], ['E1013: Argument 1: type
mismatch, expected number but got string', 'E1210: Number required for argument
1'])
assert_equal([], timer_info(100))
! assert_equal([], timer_info())
enddef
def Test_timer_pause()
--- 4520,4526 ----
def Test_timer_info()
v9.CheckDefAndScriptFailure(['timer_info("id")'], ['E1013: Argument 1: type
mismatch, expected number but got string', 'E1210: Number required for argument
1'])
assert_equal([], timer_info(100))
! assert_equal([], timer_info()->filter((_, t) => t.callback->string() !~
'TestTimeout'))
enddef
def Test_timer_pause()
*** ../vim-9.0.0562/src/testdir/test_vimscript.vim 2022-09-22
13:43:57.491406698 +0100
--- src/testdir/test_vimscript.vim 2022-09-23 20:54:15.728324606 +0100
***************
*** 7217,7224 ****
unlet d
delfunc DictFunc
! call assert_equal(-1, test_refcount(test_null_job()))
! call assert_equal(-1, test_refcount(test_null_channel()))
call assert_equal(-1, test_refcount(test_null_function()))
call assert_equal(-1, test_refcount(test_null_partial()))
call assert_equal(-1, test_refcount(test_null_blob()))
--- 7217,7226 ----
unlet d
delfunc DictFunc
! if has('channel')
! call assert_equal(-1, test_refcount(test_null_job()))
! call assert_equal(-1, test_refcount(test_null_channel()))
! endif
call assert_equal(-1, test_refcount(test_null_function()))
call assert_equal(-1, test_refcount(test_null_partial()))
call assert_equal(-1, test_refcount(test_null_blob()))
*** ../vim-9.0.0562/src/version.c 2022-09-23 20:33:36.207217264 +0100
--- src/version.c 2022-09-23 21:01:39.495230839 +0100
***************
*** 701,702 ****
--- 701,704 ----
{ /* Add new patch number below this line */
+ /**/
+ 563,
/**/
--
hundred-and-one symptoms of being an internet addict:
147. You finally give up smoking...because it made the monitor dirty.
/// 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/20220923200226.E35021C0674%40moolenaar.net.