mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0563: timer_info() test fails
Problem: Timer_info() test fails. Solution: Ignore test timeout timer. Don't use test_null_job() when not available.
This commit is contained in:
@@ -4520,7 +4520,7 @@ enddef
|
|||||||
def Test_timer_info()
|
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'])
|
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(100))
|
||||||
assert_equal([], timer_info())
|
assert_equal([], timer_info()->filter((_, t) => t.callback->string() !~ 'TestTimeout'))
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_timer_pause()
|
def Test_timer_pause()
|
||||||
|
@@ -7217,8 +7217,10 @@ func Test_refcount()
|
|||||||
unlet d
|
unlet d
|
||||||
delfunc DictFunc
|
delfunc DictFunc
|
||||||
|
|
||||||
call assert_equal(-1, test_refcount(test_null_job()))
|
if has('channel')
|
||||||
call assert_equal(-1, test_refcount(test_null_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_function()))
|
||||||
call assert_equal(-1, test_refcount(test_null_partial()))
|
call assert_equal(-1, test_refcount(test_null_partial()))
|
||||||
call assert_equal(-1, test_refcount(test_null_blob()))
|
call assert_equal(-1, test_refcount(test_null_blob()))
|
||||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
563,
|
||||||
/**/
|
/**/
|
||||||
562,
|
562,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user