Patch 9.0.0563

2 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 23, 2022, 4:02:37 PM9/23/22
to vim...@googlegroups.com

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 -- 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